You are here

public function NodeEventVariables::getEntity in Hook Event Dispatcher 8

Get the Entity.

Return value

\Drupal\Core\Entity\EntityInterface Entity.

Overrides AbstractEntityEventVariables::getEntity

File

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

Class

NodeEventVariables
Class NodeEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

public function getEntity() {
  return $this
    ->getNode();
}