final class HtmlPreprocessEventFactory in Hook Event Dispatcher 8
Class HtmlPreprocessEventFactory.
Hierarchy
- class \Drupal\hook_event_dispatcher\Event\Preprocess\Factory\HtmlPreprocessEventFactory implements PreprocessEventFactoryInterface
Expanded class hierarchy of HtmlPreprocessEventFactory
1 string reference to 'HtmlPreprocessEventFactory'
1 service uses HtmlPreprocessEventFactory
File
- src/
Event/ Preprocess/ Factory/ HtmlPreprocessEventFactory.php, line 11
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\FactoryView source
final class HtmlPreprocessEventFactory implements PreprocessEventFactoryInterface {
/**
* {@inheritdoc}
*/
public function createEvent(array &$variables) {
return new HtmlPreprocessEvent(new HtmlEventVariables($variables));
}
/**
* {@inheritdoc}
*/
public function getEventHook() {
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:: |