Resolves ui component params

@param String $name
@param String $file
@return string
358062
protected function resolveUIComponentParams($name, $file)
    {
        $namespace = $this->resolveUIComponentNamespace($this->files->get($file));
        if (!class_exists($namespace . '\\' . $name)) {
            return false;
        }
        $instance   = app($namespace . '\\' . $name);
        $hasWidgets = Registry::isRegistered('ui-components');
        if (!$hasWidgets) {
            $collection = new Collection([$instance]);
        } else {
            $collection = Registry::get('ui-components');
            $collection->push($instance);
        }

        $this->resolveDisabledUIComponent($instance);
        $this->resolveViewedUIComponent($instance);

        Registry::set('ui-components', $collection);
        $attributes = $instance->getAttributes();



        return array_except($attributes, ['id']);
    }
1079483
protected function resolveXRef($name)
    {
        if (($obj = $this->elements[$name]) instanceof ElementXRef && !is_null($this->document)) {
            /** @var ElementXRef $obj */
            $object = $this->document->getObjectById($obj->getId());

            if (is_null($object)) {
                return new ElementMissing(null, null);
            }

            // Update elements list for future calls.
            $this->elements[$name] = $object;
        }

        return $this->elements[$name];
    }
1280548
public function get($name, $default = null, $file = null) {
            $configVal = null;

            if(is_array($this->config)) {
                if($file === null) {
                    if(count(array_column($this->config, $name)) > 0) {
                        $configVal = array_column($this->config, $name)[0];
                    } else {
                        $configVal = array_column($this->config, $name);
                    }
                } else {
                    if(count(array_column($this->config->$file, $name)) > 0) {
                        $configVal = array_column($this->config->$file, $name)[0];
                    } else {
                        $configVal = array_column($this->config->$file, $name);
                    }
                }
            }

            if(empty($configVal)) {
                return $default;
            }

            return $configVal;
        }
411010
public function getActionParam($name, $default = null)
    {
        $params = $this->getActionParams();
        return isset($params[$name]) ? $params[$name] : $default;
    }
140613
public function findComponentByName($name)
    {
        if (isset($this->page->components[$name])) {
            return $this->page->components[$name];
        }

        if (isset($this->layout->components[$name])) {
            return $this->layout->components[$name];
        }

        $partialComponent = $this->partialStack->getComponent($name);
        if ($partialComponent !== null) {
            return $partialComponent;
        }

        return null;
    }
372736
function resolve($name)
    {
        $resolve = false;
        /** @var iLoader $loader */
        foreach(clone $this->_t_loader_aggregate_getQueue() as $loader) {
            $resolve = call_user_func_array(array($loader, 'resolve'), func_get_args());
            if ($resolve)
                break;
        }

        return $resolve;
    }
168027
public function resolve($name, $params = null)
    {
        if (!$resolved = $this->resolver->resolve($name, $params)) {
        }

        return $resolved;
    }
120236
public function getConponentConfigByName($name)
    {
        $file = route()->com.$name.'/component.json';
        if (file_exists($file)) {
            $fileHandling = new FileHandling();
            $c = $fileHandling->open($file, 'readOnly')->read();

            return json_decode($c, true);
        }

        return false;
    }
639971
public function addEmbeddedFile($file = null, $name = null)
    {
        if (!$name) {
            $name = basename($file);
        }

        if (preg_match('#^[\w\.]+$#', $name)) {
            $cid = $name;
        } else {
            $cid = md5($name) . '.' . pathinfo($name, PATHINFO_EXTENSION);
        }

        $this->_embeddedFiles[] = ['file' => $file, 'name' => $name, 'cid' => $cid];

        return 'cid:' . $cid;
    }
1030870
public function getFile($name)
    {
        if ($file = $this->resolveFile($name)) {
            return $file;
        } else {
            $components = $this->parseResource($name);
            throw new \RuntimeException(sprintf('Template "%s" not found in directories "%s"', $components['file'], implode('", "', $components['dirs'])));
        }
    }
172081
public function file(string $name): string {
        if (!isset($this->file[$name])) {
            return "";
        }
        return $this->file[$name];
    }
598667
public function resolve($name)
    {
        $name = array_key_exists($name, $this->aliasMap) ? $this->aliasMap[$name] : $name;

        return $this->a->resolve($name);
    }
1323131
public function resolveViewName(string $name): ?string
    {
        if (!array_key_exists($name, $this->cache)) {
            $this->collection->sort();
            $view = $this->getRouter()->route(new Context($name));
            if (!is_string($view)) {
                $view = null;
            }
            $this->cache[$name] = $view;
        }
        return $this->cache[$name];
    }
4076
public static function loadFile( $file, $name ) {

		if( !isset( $file ) ) {

			$file	= new File();
		}

		$file->load( Yii::$app->request->post(), $name );

		return $file;
	}
581725
protected function getAbstractFileForm($id, $name, $context = [])
    {
        /** @var File $file */
        $file = File::get()->byID($id);

        if (!$file) {
            $this->jsonError(404);
            return null;
        }

        if (!$file->canView()) {
            $this->jsonError(403, _t(
                __CLASS__.'.ErrorItemPermissionDenied',
                "You don't have the necessary permissions to modify {ObjectTitle}",
                [ 'ObjectTitle' => $file->i18n_singular_name() ]
            ));
            return null;
        }

        // Pass to form factory
        $showLinkText = $this->getRequest()->getVar('requireLinkText');
        $augmentedContext = array_merge(
            $context,
            [ 'Record' => $file, 'RequireLinkText' => isset($showLinkText) ]
        );
        $scaffolder = $this->getFormFactory($file);
        $form = $scaffolder->getForm($this, $name, $augmentedContext);

        // Set form action handler with ID included
        $form->setRequestHandler(
            LeftAndMainFormRequestHandler::create($form, [ $id ])
        );

        // Configure form to respond to validation errors with form schema
        // if requested via react.
        $form->setValidationResponseCallback(function (ValidationResult $error) use ($form, $id, $name) {
            $schemaId = Controller::join_links($this->Link('schema'), $name, $id);
            return $this->getSchemaResponse($schemaId, $form, $error);
        });

        return $form;
    }
684768
public function resolveByName($name)
    {
        $detectedAdapter = $this->detectByName($name);

        if ($detectedAdapter === null) {
            $exception = EnvironmentAdapterNotFoundException::createByName($name);
            throw $exception;
        }

        return $detectedAdapter;
    }
333
public function getInfo($name)
    {
        $keys = explode('.', $name);
        if (is_array($keys)) {
            $file = array_shift($keys);
            $key = implode('.', $keys);
        } else {
            $file = $name;
            $key = null;
        }

        return ['file' => $file, 'key' => $key];
    }