You are here

final class TaxonomyTermPreprocessEventFactory in Hook Event Dispatcher 8

Class TaxonomyTermPreprocessEventFactory.

Hierarchy

Expanded class hierarchy of TaxonomyTermPreprocessEventFactory

1 string reference to 'TaxonomyTermPreprocessEventFactory'
hook_event_dispatcher.services.yml in ./hook_event_dispatcher.services.yml
hook_event_dispatcher.services.yml
1 service uses TaxonomyTermPreprocessEventFactory
preprocess_event.factory.taxonomy_term in ./hook_event_dispatcher.services.yml
Drupal\hook_event_dispatcher\Event\Preprocess\Factory\TaxonomyTermPreprocessEventFactory

File

src/Event/Preprocess/Factory/TaxonomyTermPreprocessEventFactory.php, line 11

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Factory
View 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

Namesort descending Modifiers Type Description Overrides
TaxonomyTermPreprocessEventFactory::createEvent public function Create the PreprocessEvent with the Variables object embedded. Overrides PreprocessEventFactoryInterface::createEvent
TaxonomyTermPreprocessEventFactory::getEventHook public function Get the Event hook name. Overrides PreprocessEventFactoryInterface::getEventHook