Fixed toolbar setting cache tags for each entity rather than the list cache tag.
1 open thread
Closes #3425788
Merge request reports
Activity
259 259 * The cache tags. 260 260 */ 261 261 public function getCacheTags(): array { 262 /* @var EnvironmentIndicator[] $environment_entities */ 263 if (!$environment_entities = EnvironmentIndicator::loadMultiple()) { 264 return []; 265 } 266 267 $cache_tags = []; 268 foreach ($environment_entities as $entity) { 269 $cache_tags = Cache::mergeTags($cache_tags, $entity->getCacheTags()); 270 } 271 272 return $cache_tags; 262 return \Drupal::entityTypeManager()->getDefinition('environment_indicator')->getListCacheTags(); - Edited by Chris Green
changed this line in version 2 of the diff
mentioned in merge request !44 (merged)
added 6 commits
-
8dbe633a...286a7b59 - 4 commits from branch
project:4.x
- 0f6a3510 - Fixed toolbar setting cache tags for each entity rather than the list cache tag.
- aa64f919 - Issue #3425788: worked on feedback.
-
8dbe633a...286a7b59 - 4 commits from branch
Please register or sign in to reply