You are here

public function NodeEventVariables::getNode in Hook Event Dispatcher 8

Get the node.

Return value

\Drupal\node\Entity\Node The node.

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

File

src/Event/Preprocess/Variables/NodeEventVariables.php, line 16

Class

NodeEventVariables
Class NodeEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

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