public function LatestActivity::getUser in Opigno Learning path 8
Same name and namespace in other branches
- 3.x src/Entity/LatestActivity.php \Drupal\opigno_learning_path\Entity\LatestActivity::getUser()
Gets the user entity.
Return value
\Drupal\user\Entity\User The user entity.
Overrides LatestActivityInterface::getUser
File
- src/
Entity/ LatestActivity.php, line 175
Class
- LatestActivity
- Defines the Latest Activity entity.
Namespace
Drupal\opigno_learning_path\EntityCode
public function getUser() {
return $this
->get('uid')->entity;
}