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