You are here

EventSubscriberInterface.php in Audit Log 8

Same filename and directory in other branches
  1. 8.2 src/EventSubscriber/EventSubscriberInterface.php

File

src/EventSubscriber/EventSubscriberInterface.php
View source
<?php

namespace Drupal\audit_log\EventSubscriber;

use Drupal\audit_log\AuditLogEventInterface;

/**
 * Defines an event subscriber for responding to events.
 *
 * @package Drupal\audit_log\EventSubscriber
 */
interface EventSubscriberInterface {

  /**
   * Processes an event.
   *
   * @param \Drupal\audit_log\AuditLogEventInterface $event
   *   The audit event.
   *
   * @return bool
   *   TRUE if the event subscriber handled the event.
   */
  public function reactTo(AuditLogEventInterface $event);

}

Interfaces

Namesort descending Description
EventSubscriberInterface Defines an event subscriber for responding to events.