public function LibraryItem::getOwnerId in Paragraphs 8
Returns the entity owner's user ID.
Return value
int|null The owner user ID, or NULL in case the user ID field has not been set on the entity.
Overrides EntityOwnerInterface::getOwnerId
1 call to LibraryItem::getOwnerId()
- LibraryItem::preSave in modules/
paragraphs_library/ src/ Entity/ LibraryItem.php - Acts on an entity before the presave hook is invoked.
File
- modules/
paragraphs_library/ src/ Entity/ LibraryItem.php, line 199
Class
- LibraryItem
- Defines the LibraryItem entity.
Namespace
Drupal\paragraphs_library\EntityCode
public function getOwnerId() {
return $this
->get('uid')->target_id;
}