public function LPStatus::setUser in Opigno Learning path 3.x
Same name and namespace in other branches
- 8 src/Entity/LPStatus.php \Drupal\opigno_learning_path\Entity\LPStatus::setUser()
Sets the user entity.
Parameters
\Drupal\Core\Session\AccountInterface $account: User account.
Return value
\Drupal\opigno_learning_path\LPStatusInterface The called entity.
Overrides LPStatusInterface::setUser
File
- src/
Entity/ LPStatus.php, line 110
Class
- LPStatus
- Defines the User Learning Path attempt status entity.
Namespace
Drupal\opigno_learning_path\EntityCode
public function setUser(AccountInterface $account) {
$this
->set('uid', $account
->id());
return $this;
}