You are here

public function PreprocessEventFactoryInterface::createEvent 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::createEvent()

Create the PreprocessEvent with the Variables object embedded.

Parameters

array $variables: Variables.

Return value

\Drupal\preprocess_event_dispatcher\Event\AbstractPreprocessEvent Created event.

18 methods override PreprocessEventFactoryInterface::createEvent()
BlockPreprocessEventFactory::createEvent in modules/preprocess_event_dispatcher/src/Factory/BlockPreprocessEventFactory.php
Create the PreprocessEvent with the Variables object embedded.
CommentPreprocessEventFactory::createEvent in modules/preprocess_event_dispatcher/src/Factory/CommentPreprocessEventFactory.php
Create the PreprocessEvent with the Variables object embedded.
EckEntityPreprocessEventFactory::createEvent in modules/preprocess_event_dispatcher/src/Factory/EckEntityPreprocessEventFactory.php
Create the PreprocessEvent with the Variables object embedded.
ExamplePreprocessEventFactory::createEvent in examples/preprocess_example_module/src/Factory/ExamplePreprocessEventFactory.php
Create the PreprocessEvent with the Variables object embedded.
FakePreprocessEventFactory::createEvent in modules/preprocess_event_dispatcher/tests/src/Unit/Helpers/FakePreprocessEventFactory.php
Create the PreprocessEvent with the Variables object embedded.

... See full list

File

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

Class

PreprocessEventFactoryInterface
Interface PreprocessEventFactoryInterface.

Namespace

Drupal\preprocess_event_dispatcher\Factory

Code

public function createEvent(array &$variables) : AbstractPreprocessEvent;