function ReactionRuleConfig::hasEvent

Overrides RulesTriggerableInterface::hasEvent

1 call to ReactionRuleConfig::hasEvent()
ReactionRuleConfig::addEvent in src/Entity/ReactionRuleConfig.php
Adds an event to the rule configuration.

File

src/Entity/ReactionRuleConfig.php, line 276

Class

ReactionRuleConfig
Reaction rule configuration entity to persistently store configuration.

Namespace

Drupal\rules\Entity

Code

public function hasEvent(string $event_name) {
    return in_array($event_name, $this->getEventNames());
}