public function LPStatus::getUserId in Opigno Learning path 8
Same name and namespace in other branches
- 3.x src/Entity/LPStatus.php \Drupal\opigno_learning_path\Entity\LPStatus::getUserId()
Gets the user ID.
Return value
int The user ID.
Overrides LPStatusInterface::getUserId
File
- src/
Entity/ LPStatus.php, line 83
Class
- LPStatus
- Defines the User Learning Path attempt status entity.
Namespace
Drupal\opigno_learning_path\EntityCode
public function getUserId() {
return $this
->get('uid')->target_id;
}