public function getComponent($componentName)
    {
        if (!($componentSection = $this->hasComponent($componentName))) {
            return null;
        }

        return ComponentManager::instance()->makeComponent(
            $componentName,
            null,
            $this->settings['components'][$componentSection]
        );
    }
public function getComponent($componentName)
    {
        if (!($componentSection = $this->hasComponent($componentName))) {
            return null;
        }

        return ComponentManager::instance()->makeComponent(
            $componentName,
            null,
            $this->settings['components'][$componentSection]
        );
    }
public function getComponent ( $ componentName ) { if ( ! ( $ componentSection = $ this -> hasComponent ( $ componentName ) ) ) { return null ; } return ComponentManager :: instance ( ) -> makeComponent ( $ componentName , null , $ this -> settings [ 'components' ] [ $ componentSection ] ) ; }
Returns a component by its name.
This method is used only in the back-end and for internal system needs when
the standard way to access components is not an option.
@param string $componentName Specifies the component name.
@return \Cms\Classes\ComponentBase Returns the component instance or null.
Returns a component by its name . This method is used only in the back - end and for internal system needs when the standard way to access components is not an option .