public function TaxonomyTermEventVariables::getTerm in Hook Event Dispatcher 8
Get the TaxonomyTermEntity.
Return value
\Drupal\taxonomy\Entity\Term TaxonomyTermEntity.
1 call to TaxonomyTermEventVariables::getTerm()
- TaxonomyTermEventVariables::getEntity in src/
Event/ Preprocess/ Variables/ TaxonomyTermEventVariables.php - Get the Entity.
File
- src/
Event/ Preprocess/ Variables/ TaxonomyTermEventVariables.php, line 16
Class
- TaxonomyTermEventVariables
- Class TaxonomyTermEventVariables.
Namespace
Drupal\hook_event_dispatcher\Event\Preprocess\VariablesCode
public function getTerm() {
return $this->variables['term'];
}