You are here

public function CourseObjectFulfillment::getUser in Course 8.3

Same name and namespace in other branches
  1. 8.2 src/Entity/CourseObjectFulfillment.php \Drupal\course\Entity\CourseObjectFulfillment::getUser()
  2. 3.x src/Entity/CourseObjectFulfillment.php \Drupal\course\Entity\CourseObjectFulfillment::getUser()

Get this fulfillment's user.

Return value

AccountInterface

1 call to CourseObjectFulfillment::getUser()
CourseObjectFulfillment::save in src/Entity/CourseObjectFulfillment.php
Track course after saving fulfillment.

File

src/Entity/CourseObjectFulfillment.php, line 158

Class

CourseObjectFulfillment
Parent class for course object fulfillment. Unlike Course objects, this is not abstract and can be used when the fulfillment requirements are simple.

Namespace

Drupal\course\Entity

Code

public function getUser() {
  return User::load($this
    ->get('uid')
    ->getString());
}