public function Shortcut::getCacheTagsToInvalidate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/shortcut/src/Entity/Shortcut.php \Drupal\shortcut\Entity\Shortcut::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 Entity::getCacheTagsToInvalidate
See also
\Drupal\Core\Cache\RefinableCacheableDependencyInterface::addCacheTags()
\Drupal\Core\Cache\CacheableDependencyInterface::getCacheTags()
1 call to Shortcut::getCacheTagsToInvalidate()
- Shortcut::postSave in core/
modules/ shortcut/ src/ Entity/ Shortcut.php - Acts on a saved entity before the insert or update hook is invoked.
File
- core/
modules/ shortcut/ src/ Entity/ Shortcut.php, line 180 - Contains \Drupal\shortcut\Entity\Shortcut.
Class
- Shortcut
- Defines the shortcut entity class.
Namespace
Drupal\shortcut\EntityCode
public function getCacheTagsToInvalidate() {
return $this->shortcut_set->entity
->getCacheTags();
}