public function TaxonomyTermEventVariables::getEntity in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/src/Variables/TaxonomyTermEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\TaxonomyTermEventVariables::getEntity()
Get the Entity.
Return value
\Drupal\Core\Entity\EntityInterface Entity.
Overrides AbstractEntityEventVariables::getEntity
File
- modules/
preprocess_event_dispatcher/ src/ Variables/ TaxonomyTermEventVariables.php, line 26
Class
- TaxonomyTermEventVariables
- Class TaxonomyTermEventVariables.
Namespace
Drupal\preprocess_event_dispatcher\VariablesCode
public function getEntity() : EntityInterface {
return $this
->getTerm();
}