public function FakePreprocessEventFactory::createEvent in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/preprocess_event_dispatcher/tests/src/Unit/Helpers/FakePreprocessEventFactory.php \Drupal\Tests\preprocess_event_dispatcher\Unit\Helpers\FakePreprocessEventFactory::createEvent()
Create the PreprocessEvent with the Variables object embedded.
Parameters
array $variables: Variables.
Return value
FakePreprocessEvent Created event.
Overrides PreprocessEventFactoryInterface::createEvent
File
- modules/
preprocess_event_dispatcher/ tests/ src/ Unit/ Helpers/ FakePreprocessEventFactory.php, line 39
Class
- FakePreprocessEventFactory
- Class FakePreprocessEventFactory.
Namespace
Drupal\Tests\preprocess_event_dispatcher\Unit\HelpersCode
public function createEvent(array &$variables) : AbstractPreprocessEvent {
return new FakePreprocessEvent(new FakeEventVariables($variables));
}