You are here

public function NodeEventVariables::getNode in Hook Event Dispatcher 8.2

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

Get the node.

Return value

\Drupal\node\NodeInterface The node.

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

File

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

Class

NodeEventVariables
Class NodeEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

public function getNode() : NodeInterface {
  return $this->variables['node'];
}