final class HtmlPreprocessEventFactory in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/src/Factory/HtmlPreprocessEventFactory.php \Drupal\preprocess_event_dispatcher\Factory\HtmlPreprocessEventFactory
Class HtmlPreprocessEventFactory.
Hierarchy
- class \Drupal\preprocess_event_dispatcher\Factory\HtmlPreprocessEventFactory implements PreprocessEventFactoryInterface
Expanded class hierarchy of HtmlPreprocessEventFactory
1 string reference to 'HtmlPreprocessEventFactory'
- 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 HtmlPreprocessEventFactory
- preprocess_event.factory.html in modules/
preprocess_event_dispatcher/ preprocess_event_dispatcher.services.yml - Drupal\preprocess_event_dispatcher\Factory\HtmlPreprocessEventFactory
File
- modules/
preprocess_event_dispatcher/ src/ Factory/ HtmlPreprocessEventFactory.php, line 12
Namespace
Drupal\preprocess_event_dispatcher\FactoryView source
final class HtmlPreprocessEventFactory implements PreprocessEventFactoryInterface {
/**
* {@inheritdoc}
*/
public function createEvent(array &$variables) : AbstractPreprocessEvent {
return new HtmlPreprocessEvent(new HtmlEventVariables($variables));
}
/**
* {@inheritdoc}
*/
public function getEventHook() : string {
return HtmlPreprocessEvent::getHook();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HtmlPreprocessEventFactory:: |
public | function |
Create the PreprocessEvent with the Variables object embedded. Overrides PreprocessEventFactoryInterface:: |
|
HtmlPreprocessEventFactory:: |
public | function |
Get the Event hook name. Overrides PreprocessEventFactoryInterface:: |