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