public function CourseEnrollment::postSave in Course 8.3
Same name and namespace in other branches
- 8.2 src/Entity/CourseEnrollment.php \Drupal\course\Entity\CourseEnrollment::postSave()
- 3.x src/Entity/CourseEnrollment.php \Drupal\course\Entity\CourseEnrollment::postSave()
Reset enrollment access cache.
Overrides ContentEntityBase::postSave
File
- src/
Entity/ CourseEnrollment.php, line 295
Class
- CourseEnrollment
- Defines the profile entity class.
Namespace
Drupal\course\EntityCode
public function postSave(EntityStorageInterface $storage, $update = TRUE) {
\Drupal::entityTypeManager()
->getAccessControlHandler('course')
->resetCache();
\Drupal::entityTypeManager()
->getAccessControlHandler('course_object')
->resetCache();
}