You are here

public function HookEventDispatcherManagerInterface::register 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::register()
  2. 3.x src/Manager/HookEventDispatcherManagerInterface.php \Drupal\hook_event_dispatcher\Manager\HookEventDispatcherManagerInterface::register()

Registers an event dispatcher for given entity.

Parameters

\Drupal\hook_event_dispatcher\Event\EventInterface $event: The event.

Return value

\Symfony\Component\EventDispatcher\Event The event.

2 methods override HookEventDispatcherManagerInterface::register()
HookEventDispatcherManager::register in src/Manager/HookEventDispatcherManager.php
Registers an event dispatcher for given entity.
HookEventDispatcherManagerSpy::register in tests/src/Unit/HookEventDispatcherManagerSpy.php

File

src/Manager/HookEventDispatcherManagerInterface.php, line 24

Class

HookEventDispatcherManagerInterface
Class HookEventDispatcherManager.

Namespace

Drupal\hook_event_dispatcher\Manager

Code

public function register(EventInterface $event);