public function CourseObject::postSave in Course 3.x
Same name and namespace in other branches
- 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::postSave()
- 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::postSave()
Clear static access cache on save.
Overrides ContentEntityBase::postSave
1 call to CourseObject::postSave()
- CourseObjectNode::postSave in modules/
course_content/ src/ Course/ Object/ CourseObjectNode.php - On object write, set privacy on this node.
1 method overrides CourseObject::postSave()
- CourseObjectNode::postSave in modules/
course_content/ src/ Course/ Object/ CourseObjectNode.php - On object write, set privacy on this node.
File
- src/
Entity/ CourseObject.php, line 1056
Class
- CourseObject
- Parent abstract base class of all course objects.
Namespace
Drupal\course\EntityCode
public function postSave(EntityStorageInterface $storage, $update = TRUE) {
parent::postSave($storage, $update);
\Drupal::entityTypeManager()
->getAccessControlHandler('course_object')
->resetCache();
}