Skip to content
Snippets Groups Projects

Fixed toolbar setting cache tags for each entity rather than the list cache tag.

Closes #3425788

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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();
  • Atul Ghate added 1 commit

    added 1 commit

    Compare with previous version

  • Chris Green mentioned in merge request !44 (merged)

    mentioned in merge request !44 (merged)

  • added 6 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading