final class NodePreprocessEventFactory in Hook Event Dispatcher 8
Class NodePreprocessEventFactory.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Preprocess\Factory\NodePreprocessEventFactory implements PreprocessEventFactoryInterface
Expanded class hierarchy of NodePreprocessEventFactory
1 string reference to 'NodePreprocessEventFactory'
1 service uses NodePreprocessEventFactory
File
- src/
Event/ Preprocess/ Factory/ NodePreprocessEventFactory.php, line 11
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\FactoryView source
final class NodePreprocessEventFactory implements PreprocessEventFactoryInterface {
/**
* {@inheritdoc}
*/
public function createEvent(array &$variables) {
return new NodePreprocessEvent(new NodeEventVariables($variables));
}
/**
* {@inheritdoc}
*/
public function getEventHook() {
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:: |