function EntityInterface::getCacheTagsToInvalidate
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::getCacheTagsToInvalidate()
- 10 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::getCacheTagsToInvalidate()
- 11.x 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\EntityCode
public function getCacheTagsToInvalidate();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.