TaxonomyTermEventVariables.php in Hook Event Dispatcher 8.2
File
modules/preprocess_event_dispatcher/src/Variables/TaxonomyTermEventVariables.php
View source
<?php
namespace Drupal\preprocess_event_dispatcher\Variables;
use Drupal\Core\Entity\EntityInterface;
use Drupal\taxonomy\TermInterface;
class TaxonomyTermEventVariables extends AbstractEntityEventVariables {
public function getTerm() : TermInterface {
return $this->variables['term'];
}
public function getEntity() : EntityInterface {
return $this
->getTerm();
}
}