You are here

TaxonomyTermPreprocessEventFactory.php in Hook Event Dispatcher 8

File

src/Event/Preprocess/Factory/TaxonomyTermPreprocessEventFactory.php
View source
<?php

namespace Drupal\hook_event_dispatcher\Event\Preprocess\Factory;

use Drupal\hook_event_dispatcher\Event\Preprocess\TaxonomyTermPreprocessEvent;
use Drupal\hook_event_dispatcher\Event\Preprocess\Variables\TaxonomyTermEventVariables;

/**
 * Class TaxonomyTermPreprocessEventFactory.
 */
final class TaxonomyTermPreprocessEventFactory implements PreprocessEventFactoryInterface {

  /**
   * {@inheritdoc}
   */
  public function createEvent(array &$variables) {
    return new TaxonomyTermPreprocessEvent(new TaxonomyTermEventVariables($variables));
  }

  /**
   * {@inheritdoc}
   */
  public function getEventHook() {
    return TaxonomyTermPreprocessEvent::getHook();
  }

}

Classes

Namesort descending Description
TaxonomyTermPreprocessEventFactory Class TaxonomyTermPreprocessEventFactory.