You are here

public function LPStatus::getUser in Opigno Learning path 3.x

Same name and namespace in other branches
  1. 8 src/Entity/LPStatus.php \Drupal\opigno_learning_path\Entity\LPStatus::getUser()

Gets the user entity.

Return value

\Drupal\user\Entity\User The user entity.

Overrides LPStatusInterface::getUser

File

src/Entity/LPStatus.php, line 103

Class

LPStatus
Defines the User Learning Path attempt status entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function getUser() {
  return $this
    ->get('uid')->entity;
}