function RulesComponentConfig::getContextDefinitions
Gets the definitions of the used context.
Return value
\Drupal\rules\Context\ContextDefinitionInterface[] The array of context definition, keyed by context name.
File
-
src/
Entity/ RulesComponentConfig.php, line 157
Class
- RulesComponentConfig
- Rules component configuration entity to persistently store configuration.
Namespace
Drupal\rules\EntityCode
public function getContextDefinitions() {
$definitions = [];
if (!empty($this->component['context_definitions'])) {
foreach ($this->component['context_definitions'] as $name => $definition) {
$definitions[$name] = ContextDefinition::createFromArray($definition);
}
}
return $definitions;
}