public function ILTResult::getUserId in Opigno Instructor-led Trainings 8
Same name and namespace in other branches
- 3.x src/Entity/ILTResult.php \Drupal\opigno_ilt\Entity\ILTResult::getUserId()
Returns the user ID.
Return value
int|null The user ID, or NULL in case the user ID field has not been set on the entity.
Overrides ILTResultInterface::getUserId
File
- src/
Entity/ ILTResult.php, line 94
Class
- ILTResult
- Defines the ILT Result entity.
Namespace
Drupal\opigno_ilt\EntityCode
public function getUserId() {
return $this
->get('user_id')->target_id;
}