You are here

HookEventDispatcherManagerInterface.php in Hook Event Dispatcher 8

File

src/Manager/HookEventDispatcherManagerInterface.php
View source
<?php

namespace Drupal\hook_event_dispatcher\Manager;

use Drupal\hook_event_dispatcher\Event\EventInterface;

/**
 * Class HookEventDispatcherManager.
 *
 * Wrapper class for the external dispatcher dependency. If this ever changes
 * we only have to change it once.
 */
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);

}

Interfaces

Namesort descending Description
HookEventDispatcherManagerInterface Class HookEventDispatcherManager.