You are here

public function LPResult::setUserId in Opigno Learning path 8

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

Sets User Id.

File

src/Entity/LPResult.php, line 109

Class

LPResult
Defines the Learning Path Content entity.

Namespace

Drupal\opigno_learning_path\Entity

Code

public function setUserId($user_id) {
  $this
    ->set('user_id', $user_id);
  return $this;
}