public function ParagraphPreprocessEventFactory::createEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/src/Factory/ParagraphPreprocessEventFactory.php \Drupal\preprocess_event_dispatcher\Factory\ParagraphPreprocessEventFactory::createEvent()
Create the PreprocessEvent with the Variables object embedded.
Parameters
array $variables: Variables.
Return value
\Drupal\preprocess_event_dispatcher\Event\AbstractPreprocessEvent Created event.
Overrides PreprocessEventFactoryInterface::createEvent
File
- modules/
preprocess_event_dispatcher/ src/ Factory/ ParagraphPreprocessEventFactory.php, line 17
Class
- ParagraphPreprocessEventFactory
- Class ParagraphPreprocessEventFactory.
Namespace
Drupal\preprocess_event_dispatcher\FactoryCode
public function createEvent(array &$variables) : AbstractPreprocessEvent {
return new ParagraphPreprocessEvent(new ParagraphEventVariables($variables));
}