You are here

TaxonomyTermEventVariables.php in Hook Event Dispatcher 8

File

src/Event/Preprocess/Variables/TaxonomyTermEventVariables.php
View source
<?php

namespace Drupal\hook_event_dispatcher\Event\Preprocess\Variables;


/**
 * Class TaxonomyTermEventVariables.
 */
class TaxonomyTermEventVariables extends AbstractEntityEventVariables {

  /**
   * Get the TaxonomyTermEntity.
   *
   * @return \Drupal\taxonomy\Entity\Term
   *   TaxonomyTermEntity.
   */
  public function getTerm() {
    return $this->variables['term'];
  }

  /**
   * {@inheritdoc}
   */
  public function getEntity() {
    return $this
      ->getTerm();
  }

}

Classes

Namesort descending Description
TaxonomyTermEventVariables Class TaxonomyTermEventVariables.