Skip to content
Snippets Groups Projects

Add getBundleListCacheTags() method

Closed Pierre Rudloff requested to merge issue/drupal-3501508:3501508-add-a-way into 11.x
5 files
+ 37
1
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -483,7 +483,10 @@ public function getCacheContexts() {
protected function getListCacheTagsToInvalidate() {
$tags = $this->getEntityType()->getListCacheTags();
if ($this->getEntityType()->hasKey('bundle')) {
$tags[] = $this->getEntityTypeId() . '_list:' . $this->bundle();
$tags = Cache::mergeTags(
$tags,
$this->getEntityType()->getBundleListCacheTags($this->bundle())
);
}
return $tags;
}
Loading