You are here

public function LPResult::getUserId in Opigno Learning path 3.x

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

Returns User Id.

File

src/Entity/LPResult.php, line 102

Class

LPResult
Defines the Learning Path Content entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function getUserId() {
  return $this
    ->get('user_id')->target_id;
}