You are here

interface PreprocessEventFactoryInterface in Hook Event Dispatcher 8

Interface PreprocessEventFactoryInterface.

Hierarchy

Expanded class hierarchy of PreprocessEventFactoryInterface

All classes that implement PreprocessEventFactoryInterface

3 files declare their use of PreprocessEventFactoryInterface
ExamplePreprocessEventFactory.php in src/Example/preprocess_example_module/src/Event/Factory/ExamplePreprocessEventFactory.php
FakePreprocessEventFactory.php in tests/src/Unit/Preprocess/Helpers/FakePreprocessEventFactory.php
PreprocessEventFactoryMapper.php in src/Service/PreprocessEventFactoryMapper.php

File

src/Event/Preprocess/Factory/PreprocessEventFactoryInterface.php, line 8

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Factory
View source
interface PreprocessEventFactoryInterface {

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

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

}

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