final class ViewFieldPreprocessEventFactory in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/src/Factory/ViewFieldPreprocessEventFactory.php \Drupal\preprocess_event_dispatcher\Factory\ViewFieldPreprocessEventFactory
Class ViewFieldPreprocessEventFactory.
Hierarchy
- class \Drupal\preprocess_event_dispatcher\Factory\ViewFieldPreprocessEventFactory implements PreprocessEventFactoryInterface
Expanded class hierarchy of ViewFieldPreprocessEventFactory
1 string reference to 'ViewFieldPreprocessEventFactory'
- 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 ViewFieldPreprocessEventFactory
- preprocess_event.factory.view_field in modules/
preprocess_event_dispatcher/ preprocess_event_dispatcher.services.yml - Drupal\preprocess_event_dispatcher\Factory\ViewFieldPreprocessEventFactory
File
- modules/
preprocess_event_dispatcher/ src/ Factory/ ViewFieldPreprocessEventFactory.php, line 12
Namespace
Drupal\preprocess_event_dispatcher\FactoryView source
final class ViewFieldPreprocessEventFactory implements PreprocessEventFactoryInterface {
/**
* {@inheritdoc}
*/
public function createEvent(array &$variables) : AbstractPreprocessEvent {
return new ViewFieldPreprocessEvent(new ViewFieldEventVariables($variables));
}
/**
* {@inheritdoc}
*/
public function getEventHook() : string {
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:: |