public function ParagraphEventVariables::getParagraph in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/preprocess_event_dispatcher/src/Variables/ParagraphEventVariables.php \Drupal\preprocess_event_dispatcher\Variables\ParagraphEventVariables::getParagraph()
Get the paragraph object.
Return value
\Drupal\paragraphs\ParagraphInterface Return the paragraph object.
1 call to ParagraphEventVariables::getParagraph()
- ParagraphEventVariables::getEntity in modules/
preprocess_event_dispatcher/ src/ Variables/ ParagraphEventVariables.php - Get the Entity.
File
- modules/
preprocess_event_dispatcher/ src/ Variables/ ParagraphEventVariables.php, line 19
Class
- ParagraphEventVariables
- Class ParagraphEventVariables.
Namespace
Drupal\preprocess_event_dispatcher\VariablesCode
public function getParagraph() : ParagraphInterface {
return $this->variables['paragraph'];
}