You are here

public function CourseEnrollment::track in Course 8.2

Same name and namespace in other branches
  1. 8.3 src/Entity/CourseEnrollment.php \Drupal\course\Entity\CourseEnrollment::track()
  2. 3.x src/Entity/CourseEnrollment.php \Drupal\course\Entity\CourseEnrollment::track()

File

src/Entity/CourseEnrollment.php, line 201

Class

CourseEnrollment
Defines the profile entity class.

Namespace

Drupal\course\Entity

Code

public function track() {
  $this
    ->evaluate();
  $this
    ->save();
}