You are here

public function ParagraphEventVariables::getEntity in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/preprocess_event_dispatcher/src/Variables/ParagraphEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\ParagraphEventVariables::getEntity()

Get the Entity.

Return value

\Drupal\Core\Entity\EntityInterface EckEntity.

Overrides AbstractEntityEventVariables::getEntity

File

modules/preprocess_event_dispatcher/src/Variables/ParagraphEventVariables.php, line 29

Class

ParagraphEventVariables
Class ParagraphEventVariables.

Namespace

Drupal\preprocess_event_dispatcher\Variables

Code

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