function RulesConfigurableEventHandlerInterface::determineQualifiedEvents

Determines the qualified event names for the dispatched event.

@todo The 'object' type hint should be replaced with the appropriate class once Symfony 4 is no longer supported.

Parameters

object $event: The event data of the event being dispatched. In Drupal 9 this will be a \Symfony\Component\EventDispatcher\Event, In Drupal 10 this will be a \Symfony\Contracts\EventDispatcher\Event.

string $event_name: The event base name.

array $event_definition: The event definition. If necessary for the event, the contained context definitions may be refined as suiting for the event data.

Return value

string[] The array of qualified event name suffixes to add; e.g, 'article' if the fully-qualified event "rules_entity_view:node--article" should be triggered in addition to base event "rules_entity_view:node".

1 method overrides RulesConfigurableEventHandlerInterface::determineQualifiedEvents()
ConfigurableEventHandlerEntityBundle::determineQualifiedEvents in src/EventHandler/ConfigurableEventHandlerEntityBundle.php
Determines the qualified event names for the dispatched event.

File

src/Core/RulesConfigurableEventHandlerInterface.php, line 49

Class

RulesConfigurableEventHandlerInterface
Interface for handling configurable rules events.

Namespace

Drupal\rules\Core

Code

public static function determineQualifiedEvents(object $event, $event_name, array &$event_definition);