public function UserModuleStatus::getOwner in Opigno module 3.x
Same name and namespace in other branches
- 8 src/Entity/UserModuleStatus.php \Drupal\opigno_module\Entity\UserModuleStatus::getOwner()
Returns the entity owner's user entity.
Return value
\Drupal\user\UserInterface The owner user entity.
Overrides EntityOwnerInterface::getOwner
2 calls to UserModuleStatus::getOwner()
- UserModuleStatus::calculateBestScore in src/
Entity/ UserModuleStatus.php - Calculates module best score.
- UserModuleStatus::finishAttempt in src/
Entity/ UserModuleStatus.php - Finish user attempt.
File
- src/
Entity/ UserModuleStatus.php, line 101
Class
- UserModuleStatus
- Defines the User module status entity.
Namespace
Drupal\opigno_module\EntityCode
public function getOwner() {
return $this
->get('user_id')->entity;
}