You are here

protected function PageVariant::invalidateTagsOnSave in Page Manager 8.4

Same name and namespace in other branches
  1. 8 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 152

Class

PageVariant
Defines the page variant entity.

Namespace

Drupal\page_manager\Entity

Code

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());
}