protected function EntityExtraFieldForm::flushAllCaches in Entity Extra Field 8
Same name and namespace in other branches
- 2.0.x src/Form/EntityExtraFieldForm.php \Drupal\entity_extra_field\Form\EntityExtraFieldForm::flushAllCaches()
Flush all caches related to this form.
1 call to EntityExtraFieldForm::flushAllCaches()
- EntityExtraFieldForm::save in src/
Form/ EntityExtraFieldForm.php - Form submission handler for the 'save' action.
File
- src/
Form/ EntityExtraFieldForm.php, line 474
Class
- EntityExtraFieldForm
- Define entity extra field form.
Namespace
Drupal\entity_extra_field\FormCode
protected function flushAllCaches() {
/** @var \Drupal\entity_extra_field\Entity\EntityExtraField $entity */
$entity = $this->entity;
$this->cacheDiscovery
->delete($entity
->getCacheDiscoveryId());
$this->cacheTagsInvalidator
->invalidateTags([
$entity
->getCacheRenderTag(),
]);
return $this;
}