You are here

public function ApigeeEdgeActionsDebugEventSubscriber::onRulesEvent in Apigee Edge 8

Responds to rules events.

Parameters

\Symfony\Component\EventDispatcher\Event $event: The event object.

string $event_name: The event name.

File

modules/apigee_edge_actions/modules/apigee_edge_actions_debug/src/EventSubscriber/ApigeeEdgeActionsDebugEventSubscriber.php, line 58

Class

ApigeeEdgeActionsDebugEventSubscriber
Implements event subscriber for all apigee_edge_actions events.

Namespace

Drupal\apigee_edge_actions_debug\EventSubscriber

Code

public function onRulesEvent(Event $event, $event_name) {

  // Log the dispatched event.
  if ($event instanceof ApigeeEdgeActionsEventInterface) {
    $this->logger
      ->notice("Event {$event_name} was dispatched.");
  }
}