You are here

public function ParagraphInterface::getParentEntity in Paragraphs 8

Gets the parent entity of the paragraph.

Preserves language context with translated entities.

Return value

ContentEntityInterface The parent entity.

1 method overrides ParagraphInterface::getParentEntity()
Paragraph::getParentEntity in src/Entity/Paragraph.php
Gets the parent entity of the paragraph.

File

src/ParagraphInterface.php, line 24

Class

ParagraphInterface
Provides an interface defining a paragraphs entity.

Namespace

Drupal\paragraphs

Code

public function getParentEntity();