You are here

public function EntityInterface::getCacheTagsToInvalidate in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::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.

See also

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

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

2 methods override EntityInterface::getCacheTagsToInvalidate()
EntityBase::getCacheTagsToInvalidate in core/lib/Drupal/Core/Entity/EntityBase.php
Returns the cache tags that should be used to invalidate caches.
ViewUI::getCacheTagsToInvalidate in core/modules/views_ui/src/ViewUI.php
Returns the cache tags that should be used to invalidate caches.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 438

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function getCacheTagsToInvalidate();