public function PreprocessEventFactoryInterface::createEvent in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 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.
File
- modules/
preprocess_event_dispatcher/ src/ Factory/ PreprocessEventFactoryInterface.php, line 21
Class
- PreprocessEventFactoryInterface
- Interface PreprocessEventFactoryInterface.
Namespace
Drupal\preprocess_event_dispatcher\FactoryCode
public function createEvent(array &$variables) : AbstractPreprocessEvent;