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