hook_event_dispatcher-8.x-2.04/modules/preprocess_event_dispatcher/src/Factory/PreprocessEventFactoryInterface.php

modules/preprocess_event_dispatcher/src/Factory/PreprocessEventFactoryInterface.php
<?php

namespace Drupal\preprocess_event_dispatcher\Factory;

use Drupal\preprocess_event_dispatcher\Event\AbstractPreprocessEvent;

/**
 * Interface PreprocessEventFactoryInterface.
 */
interface PreprocessEventFactoryInterface {

  /**
   * Create the PreprocessEvent with the Variables object embedded.
   *
   * @param array $variables
   *   Variables.
   *
   * @return \Drupal\preprocess_event_dispatcher\Event\AbstractPreprocessEvent
   *   Created event.
   */
  public function createEvent(array &$variables): AbstractPreprocessEvent;

  /**
   * Get the Event hook name.
   *
   * @return string
   *   The hook name.
   */
  public function getEventHook(): string;

}

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

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