Back to ComponentHelper class

Method getComponents

public static \Joomla\CMS\Component\ComponentRecord[]
getComponents
()
Get installed components
Returns
  • \Joomla\CMS\Component\ComponentRecord[] The components property
Since
  • 3.6.3

Method getComponents - Source code

/**
 * Get installed components
 *
 * @return  ComponentRecord[]  The components property
 *
 * @since   3.6.3
 */
public static function getComponents()
{
    if (empty(static::$components)) {
        static::load();
    }
    return static::$components;
}