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