function RulesTriggerableInterface::addEvent

Adds an event to the rule configuration.

Parameters

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

array $configuration: (optional) Configuration of the event.

Return value

\Drupal\rules\Core\RulesTriggerableInterface The object instance itself, to allow chaining.

1 method overrides RulesTriggerableInterface::addEvent()
ReactionRuleConfig::addEvent in src/Entity/ReactionRuleConfig.php
Adds an event to the rule configuration.

File

src/Core/RulesTriggerableInterface.php, line 42

Class

RulesTriggerableInterface
Interface for objects that are triggerable.

Namespace

Drupal\rules\Core

Code

public function addEvent(string $event_name, array $configuration = []);