You are here

public function TaxonomyTermEventVariables::getTerm in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/preprocess_event_dispatcher/src/Variables/TaxonomyTermEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\TaxonomyTermEventVariables::getTerm()

Get the TaxonomyTermEntity.

Return value

\Drupal\taxonomy\TermInterface TaxonomyTermEntity.

1 call to TaxonomyTermEventVariables::getTerm()
TaxonomyTermEventVariables::getEntity in modules/preprocess_event_dispatcher/src/Variables/TaxonomyTermEventVariables.php
Get the Entity.

File

modules/preprocess_event_dispatcher/src/Variables/TaxonomyTermEventVariables.php, line 19

Class

TaxonomyTermEventVariables
Class TaxonomyTermEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

public function getTerm() : TermInterface {
  return $this->variables['term'];
}