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