final class NodePreprocessEventFactory in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/preprocess_event_dispatcher/src/Factory/NodePreprocessEventFactory.php \Drupal\preprocess_event_dispatcher\Factory\NodePreprocessEventFactory
Class NodePreprocessEventFactory.
Hierarchy
- class \Drupal\preprocess_event_dispatcher\Factory\NodePreprocessEventFactory implements PreprocessEventFactoryInterface
Expanded class hierarchy of NodePreprocessEventFactory
1 string reference to 'NodePreprocessEventFactory'
- preprocess_event_dispatcher.services.yml in modules/
preprocess_event_dispatcher/ preprocess_event_dispatcher.services.yml - modules/preprocess_event_dispatcher/preprocess_event_dispatcher.services.yml
1 service uses NodePreprocessEventFactory
- preprocess_event.factory.node in modules/
preprocess_event_dispatcher/ preprocess_event_dispatcher.services.yml - Drupal\preprocess_event_dispatcher\Factory\NodePreprocessEventFactory
File
- modules/
preprocess_event_dispatcher/ src/ Factory/ NodePreprocessEventFactory.php, line 12
Namespace
Drupal\preprocess_event_dispatcher\FactoryView source
final class NodePreprocessEventFactory implements PreprocessEventFactoryInterface {
/**
* {@inheritdoc}
*/
public function createEvent(array &$variables) : AbstractPreprocessEvent {
return new NodePreprocessEvent(new NodeEventVariables($variables));
}
/**
* {@inheritdoc}
*/
public function getEventHook() : string {
return NodePreprocessEvent::getHook();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NodePreprocessEventFactory:: |
public | function |
Create the PreprocessEvent with the Variables object embedded. Overrides PreprocessEventFactoryInterface:: |
|
NodePreprocessEventFactory:: |
public | function |
Get the Event hook name. Overrides PreprocessEventFactoryInterface:: |