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