public function EntityQueue::getCacheTagsToInvalidate in Entityqueue 8
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 EntityQueue::getCacheTagsToInvalidate()
- EntityQueue::invalidateTagsOnSave in src/
Entity/ EntityQueue.php - Override to never invalidate the entity's cache tag; the config system already invalidates it.
File
- src/
Entity/ EntityQueue.php, line 327
Class
- EntityQueue
- Defines the EntityQueue entity class.
Namespace
Drupal\entityqueue\EntityCode
public function getCacheTagsToInvalidate() {
// A newly created or deleted queue could alter views data relationships, so
// we must invalidate the associated 'views_data' cache tag.
return Cache::mergeTags(parent::getCacheTagsToInvalidate(), [
'views_data',
'entity_field_info',
]);
}