You are here

public function ParagraphEventVariables::getEntity in Hook Event Dispatcher 8

Get the Entity.

Return value

\Drupal\Core\Entity\EntityInterface EckEntity.

Overrides AbstractEntityEventVariables::getEntity

File

src/Event/Preprocess/Variables/ParagraphEventVariables.php, line 26

Class

ParagraphEventVariables
Class ParagraphEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

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