You are here

interface HookEventDispatcherManagerInterface in Hook Event Dispatcher 8

Same name and namespace in other branches
  1. 8.2 src/Manager/HookEventDispatcherManagerInterface.php \Drupal\hook_event_dispatcher\Manager\HookEventDispatcherManagerInterface
  2. 3.x src/Manager/HookEventDispatcherManagerInterface.php \Drupal\hook_event_dispatcher\Manager\HookEventDispatcherManagerInterface

Class HookEventDispatcherManager.

Wrapper class for the external dispatcher dependency. If this ever changes we only have to change it once.

Hierarchy

Expanded class hierarchy of HookEventDispatcherManagerInterface

All classes that implement HookEventDispatcherManagerInterface

1 file declares its use of HookEventDispatcherManagerInterface
HookEventDispatcherManagerSpy.php in tests/src/Unit/HookEventDispatcherManagerSpy.php

File

src/Manager/HookEventDispatcherManagerInterface.php, line 13

Namespace

Drupal\hook_event_dispatcher\Manager
View source
interface HookEventDispatcherManagerInterface {

  /**
   * Registers an event dispatcher for given entity.
   *
   * @param \Drupal\hook_event_dispatcher\Event\EventInterface $event
   *   The event.
   *
   * @return \Symfony\Component\EventDispatcher\Event
   *   The event.
   */
  public function register(EventInterface $event);

}

Members

Namesort descending Modifiers Type Description Overrides
HookEventDispatcherManagerInterface::register public function Registers an event dispatcher for given entity. 2