You are here

public function TaxonomyTermEventVariables::getEntity in Hook Event Dispatcher 8

Get the Entity.

Return value

\Drupal\Core\Entity\EntityInterface Entity.

Overrides AbstractEntityEventVariables::getEntity

File

src/Event/Preprocess/Variables/TaxonomyTermEventVariables.php, line 23

Class

TaxonomyTermEventVariables
Class TaxonomyTermEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

public function getEntity() {
  return $this
    ->getTerm();
}