final class ParagraphPreprocessEventFactory in Hook Event Dispatcher 8
Class ParagraphPreprocessEventFactory.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Preprocess\Factory\ParagraphPreprocessEventFactory implements PreprocessEventFactoryInterface
Expanded class hierarchy of ParagraphPreprocessEventFactory
1 string reference to 'ParagraphPreprocessEventFactory'
1 service uses ParagraphPreprocessEventFactory
File
- src/
Event/ Preprocess/ Factory/ ParagraphPreprocessEventFactory.php, line 11
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\FactoryView source
final class ParagraphPreprocessEventFactory implements PreprocessEventFactoryInterface {
/**
* {@inheritdoc}
*/
public function createEvent(array &$variables) {
return new ParagraphPreprocessEvent(new ParagraphEventVariables($variables));
}
/**
* {@inheritdoc}
*/
public function getEventHook() {
return ParagraphPreprocessEvent::getHook();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ParagraphPreprocessEventFactory:: |
public | function |
Create the PreprocessEvent with the Variables object embedded. Overrides PreprocessEventFactoryInterface:: |
|
ParagraphPreprocessEventFactory:: |
public | function |
Get the Event hook name. Overrides PreprocessEventFactoryInterface:: |