public function Paragraph::getOwnerId in Paragraphs 8
Overrides EntityOwnerInterface::getOwnerId
Deprecated
Paragraphs no longer have their own author, check the parent entity instead.
File
- src/
Entity/ Paragraph.php, line 274
Class
- Paragraph
- Defines the Paragraph entity.
Namespace
Drupal\paragraphs\EntityCode
public function getOwnerId() {
$parent = $this
->getParentEntity();
if ($parent instanceof EntityOwnerInterface) {
return $parent
->getOwnerId();
}
else {
return NULL;
}
}