public function CourseObjectFulfillment::postSave in Course 8.3
Same name and namespace in other branches
- 8.2 src/Entity/CourseObjectFulfillment.php \Drupal\course\Entity\CourseObjectFulfillment::postSave()
- 3.x src/Entity/CourseObjectFulfillment.php \Drupal\course\Entity\CourseObjectFulfillment::postSave()
Reset object access cache.
Overrides ContentEntityBase::postSave
File
- src/
Entity/ CourseObjectFulfillment.php, line 228
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\EntityCode
public function postSave(\Drupal\Core\Entity\EntityStorageInterface $storage, $update = TRUE) {
\Drupal::entityTypeManager()
->getAccessControlHandler('course_object')
->resetCache();
}