public function FilebrowserMetadataEntity::getOwnerId in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 src/Entity/FilebrowserMetadataEntity.php \Drupal\filebrowser\Entity\FilebrowserMetadataEntity::getOwnerId()
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
File
- src/
Entity/ FilebrowserMetadataEntity.php, line 85
Class
- FilebrowserMetadataEntity
- Defines the Filebrowser metadata entity entity.
Namespace
Drupal\filebrowser\EntityCode
public function getOwnerId() {
return $this
->get('user_id')->target_id;
}