Back to Workflow class

Method getComponent

protected \Joomla\CMS\Extension\ComponentInterface
getComponent
()
Returns the booted component
Returns
  • \Joomla\CMS\Extension\ComponentInterface
Since
  • 4.0.0
Class: Workflow
Project: Joomla

Method getComponent - Source code

/**
 * Returns the booted component
 *
 * @return ComponentInterface
 *
 * @since   4.0.0
 */
protected function getComponent()
{
    if (\is_null($this->component)) {
        $parts = explode('.', $this->extension);
        $this->component = $this->app->bootComponent($parts[0]);
    }
    return $this->component;
}