protected function PageVariant::invalidateTagsOnSave in Page Manager 8
Same name and namespace in other branches
- 8.4 src/Entity/PageVariant.php \Drupal\page_manager\Entity\PageVariant::invalidateTagsOnSave()
Override to never invalidate the entity's cache tag; the config system already invalidates it.
Overrides ConfigEntityBase::invalidateTagsOnSave
File
- src/
Entity/ PageVariant.php, line 157 - Contains Drupal\page_manager\Entity\PageVariant.
Class
- PageVariant
- Defines the page variant entity.
Namespace
Drupal\page_manager\EntityCode
protected function invalidateTagsOnSave($update) {
parent::invalidateTagsOnSave($update);
// The parent doesn't invalidate the entity cache tags on save because the
// config system will invalidate them, but since we're using the parent
// page's cache tags, we need to invalidate them special.
Cache::invalidateTags($this
->getCacheTagsToInvalidate());
}