Back to WorkflowServiceTrait class

Method getConditions

public static array
getConditions
(string $extension)
Returns an array of possible conditions for the component.
Parameters
  • string $extension The component and section separated by ".".
Returns
  • array
Since
  • 4.0.0

Method getConditions - Source code

/**
 * Returns an array of possible conditions for the component.
 *
 * @param   string  $extension  The component and section separated by ".".
 *
 * @return  array
 *
 * @since   4.0.0
 */
public static function getConditions(string $extension) : array
{
    return \defined('self::CONDITION_NAMES') ? self::CONDITION_NAMES : Workflow::CONDITION_NAMES;
}