You are here

public function ParagraphEventVariables::getParagraph in Hook Event Dispatcher 8

Get the paragraph object.

Return value

\Drupal\paragraphs\Entity\Paragraph Return the paragraph object.

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

File

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

Class

ParagraphEventVariables
Class ParagraphEventVariables.

Namespace

Drupal\hook_event_dispatcher\Event\Preprocess\Variables

Code

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