You are here

interface PreprocessEventFactoryInterface in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/preprocess_event_dispatcher/src/Factory/PreprocessEventFactoryInterface.php \Drupal\preprocess_event_dispatcher\Factory\PreprocessEventFactoryInterface

Interface PreprocessEventFactoryInterface.

Hierarchy

Expanded class hierarchy of PreprocessEventFactoryInterface

All classes that implement PreprocessEventFactoryInterface

3 files declare their use of PreprocessEventFactoryInterface
ExamplePreprocessEventFactory.php in examples/preprocess_example_module/src/Factory/ExamplePreprocessEventFactory.php
FakePreprocessEventFactory.php in modules/preprocess_event_dispatcher/tests/src/Unit/Helpers/FakePreprocessEventFactory.php
PreprocessEventFactoryMapper.php in modules/preprocess_event_dispatcher/src/Service/PreprocessEventFactoryMapper.php

File

modules/preprocess_event_dispatcher/src/Factory/PreprocessEventFactoryInterface.php, line 10

Namespace

Drupal\preprocess_event_dispatcher\Factory
View source
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;

}

Members

Namesort descending Modifiers Type Description Overrides
PreprocessEventFactoryInterface::createEvent public function Create the PreprocessEvent with the Variables object embedded. 18
PreprocessEventFactoryInterface::getEventHook public function Get the Event hook name. 18