You are here

public function PreprocessEventFactoryInterface::createEvent in Hook Event Dispatcher 8

Create the PreprocessEvent with the Variables object embedded.

Parameters

array $variables: Variables.

Return value

\Drupal\hook_event_dispatcher\Event\Preprocess\AbstractPreprocessEvent Created event.

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

... See full list

File

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

Class

PreprocessEventFactoryInterface
Interface PreprocessEventFactoryInterface.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Factory

Code

public function createEvent(array &$variables);