You are here

public function PageVariant::getCacheTagsToInvalidate in Page Manager 8.4

Same name and namespace in other branches
  1. 8 src/Entity/PageVariant.php \Drupal\page_manager\Entity\PageVariant::getCacheTagsToInvalidate()

Returns the cache tags that should be used to invalidate caches.

This will not return additional cache tags added through addCacheTags().

Return value

string[] Set of cache tags.

Overrides ConfigEntityBase::getCacheTagsToInvalidate

See also

\Drupal\Core\Cache\RefinableCacheableDependencyInterface::addCacheTags()

\Drupal\Core\Cache\CacheableDependencyInterface::getCacheTags()

1 call to PageVariant::getCacheTagsToInvalidate()
PageVariant::invalidateTagsOnSave in src/Entity/PageVariant.php
Override to never invalidate the entity's cache tag; the config system already invalidates it.

File

src/Entity/PageVariant.php, line 180

Class

PageVariant
Defines the page variant entity.

Namespace

Drupal\page_manager\Entity

Code

public function getCacheTagsToInvalidate() {

  // We use the same cache tags as the parent page.
  return $this
    ->getPage()
    ->getCacheTagsToInvalidate();
}