function RulesDefaultEventHandler::getContextDefinitions
Overrides RulesEventHandlerInterface::getContextDefinitions
1 call to RulesDefaultEventHandler::getContextDefinitions()
- RulesDefaultEventHandler::getContextDefinition in src/
Core/ RulesDefaultEventHandler.php - Gets a specific context definition of the plugin.
File
-
src/
Core/ RulesDefaultEventHandler.php, line 16
Class
- RulesDefaultEventHandler
- Default event handler class.
Namespace
Drupal\rules\CoreCode
public function getContextDefinitions() {
$definition = $this->getPluginDefinition();
if ($this instanceof RulesConfigurableEventHandlerInterface) {
$this->refineContextDefinitions();
}
return !empty($definition['context_definitions']) ? $definition['context_definitions'] : [];
}