public function ParagraphInterface::getParentEntity

Gets the parent entity of the paragraph.

Preserves language context with translated entities.

Return value

\Drupal\Core\Entity\ContentEntityInterface|null The parent entity.

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

File

paragraphs/src/ParagraphInterface.php, line 24

Class

ParagraphInterface
Provides an interface defining a paragraphs entity.

Namespace

Drupal\paragraphs

Code

public function getParentEntity();