public function UserModuleStatus::getOwnerId in Opigno module 3.x
Same name and namespace in other branches
- 8 src/Entity/UserModuleStatus.php \Drupal\opigno_module\Entity\UserModuleStatus::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/ UserModuleStatus.php, line 108
Class
- UserModuleStatus
- Defines the User module status entity.
Namespace
Drupal\opigno_module\EntityCode
public function getOwnerId() {
return $this
->get('user_id')->target_id;
}