public function CourseEnrollment::save in Course 8.3
Same name and namespace in other branches
- 8.2 src/Entity/CourseEnrollment.php \Drupal\course\Entity\CourseEnrollment::save()
- 3.x src/Entity/CourseEnrollment.php \Drupal\course\Entity\CourseEnrollment::save()
@kludge Reset the static lookup cache.
Overrides EntityBase::save
1 call to CourseEnrollment::save()
- CourseEnrollment::track in src/
Entity/ CourseEnrollment.php
File
- src/
Entity/ CourseEnrollment.php, line 105
Class
- CourseEnrollment
- Defines the profile entity class.
Namespace
Drupal\course\EntityCode
public function save() {
$watchdog_variables = array(
'@uid' => $this
->getUser()
->id(),
'@cid' => $this
->getCourse()
->id(),
);
$ret = parent::save();
if ($this
->isNew()) {
Drupal::logger('course_enroll')
->notice('Enrolled user @uid into @cid.', $watchdog_variables);
}
return $ret;
}