function RulesTriggerableInterface::hasEvent

Returns if the rule is reacting on the given event.

Parameters

string $event_name: The machine name of the event to look for.

Return value

bool TRUE if the rule is reacting on the given event, FALSE otherwise.

1 method overrides RulesTriggerableInterface::hasEvent()
ReactionRuleConfig::hasEvent in src/Entity/ReactionRuleConfig.php
Returns if the rule is reacting on the given event.

File

src/Core/RulesTriggerableInterface.php, line 53

Class

RulesTriggerableInterface
Interface for objects that are triggerable.

Namespace

Drupal\rules\Core

Code

public function hasEvent(string $event_name);