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