Back to LegacyComponent class

Method getContexts

public array
getContexts
()
Returns valid contexts.
Returns
  • array
Since
  • 4.0.0

Method getContexts - Source code

/**
 * Returns valid contexts.
 *
 * @return  array
 *
 * @since   4.0.0
 */
public function getContexts() : array
{
    $helper = $this->loadHelper();
    if (!$helper || !\is_callable(array($helper, 'getContexts'))) {
        return [];
    }
    return $helper::getContexts();
}