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