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