hook_event_dispatcher-8.x-2.04/src/Manager/HookEventDispatcherManagerInterface.php

src/Manager/HookEventDispatcherManagerInterface.php
<?php

namespace Drupal\hook_event_dispatcher\Manager;

use Drupal\Component\EventDispatcher\Event;
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 \Drupal\Component\EventDispatcher\Event
   *   The event.
   */
  public function register(EventInterface $event): Event;

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc