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