You are here

public function LayoutParagraphsLayout::getEntity in Layout Paragraphs 2.0.x

Returns the layout's parent entity with updated paragraphs reference field.

Return value

\Drupal\Core\Entity\EntityInterface The entity.

2 calls to LayoutParagraphsLayout::getEntity()
LayoutParagraphsLayout::insertIntoRegion in src/LayoutParagraphsLayout.php
Insert a paragraph component before an existing component.
LayoutParagraphsLayout::insertSiblingComponent in src/LayoutParagraphsLayout.php
Insert an new item adjacent to $sibling.

File

src/LayoutParagraphsLayout.php, line 92

Class

LayoutParagraphsLayout
Provides a domain object for a complete Layout Paragraphs Layout.

Namespace

Drupal\layout_paragraphs

Code

public function getEntity() {
  $entity = $this->paragraphsReferenceField
    ->getEntity();
  return $entity;
}