public function ReactionRuleConfig::getEventNames in Rules 8.3
Gets machine names of all events the rule is reacting on.
Return value
string[] The array of fully qualified event names of the rule.
1 call to ReactionRuleConfig::getEventNames()
- ReactionRuleConfig::getComponent in src/
Entity/ ReactionRuleConfig.php - Gets the Rules component that is invoked when the events are dispatched. The returned component has the definitions of the available event context set.
File
- src/
Entity/ ReactionRuleConfig.php, line 255
Class
- ReactionRuleConfig
- Reaction rule configuration entity to persistently store configuration.
Namespace
Drupal\rules\EntityCode
public function getEventNames() {
$names = [];
foreach ($this->events as $event) {
$names[] = $event['event_name'];
}
return $names;
}