public function LibraryItem::getOwner in Paragraphs 8
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
File
- modules/
paragraphs_library/ src/ Entity/ LibraryItem.php, line 192
Class
- LibraryItem
- Defines the LibraryItem entity.
Namespace
Drupal\paragraphs_library\EntityCode
public function getOwner() {
return $this
->get('uid')->entity;
}