public function QueueStorageEntity::getOwnerId in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::getOwnerId()
- 8.8 modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::getOwnerId()
- 10.3.x modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::getOwnerId()
- 10.0.x modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::getOwnerId()
- 10.2.x modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::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
- modules/
custom/ social_queue_storage/ src/ Entity/ QueueStorageEntity.php, line 125
Class
- QueueStorageEntity
- Defines the Queue storage entity entity.
Namespace
Drupal\social_queue_storage\EntityCode
public function getOwnerId() {
return $this
->get('user_id')->target_id;
}