You are here

protected static function EntityQueue::invalidateTagsOnDelete in Entityqueue 8

Override to never invalidate the individual entities' cache tags; the config system already invalidates them.

Overrides ConfigEntityBase::invalidateTagsOnDelete

File

src/Entity/EntityQueue.php, line 312

Class

EntityQueue
Defines the EntityQueue entity class.

Namespace

Drupal\entityqueue\Entity

Code

protected static function invalidateTagsOnDelete(EntityTypeInterface $entity_type, array $entities) {
  $tags = $entity_type
    ->getListCacheTags();

  // In addition to the parent implementation, we also need to invalidate
  // queue-specific cache tags.
  foreach ($entities as $entity) {
    $tags = Cache::mergeTags($tags, $entity
      ->getCacheTagsToInvalidate());
  }
  Cache::invalidateTags($tags);
}