You are here

protected static function TagSet::invalidateTagsOnDelete in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/Entity/TagSet.php \Drupal\xbbcode\Entity\TagSet::invalidateTagsOnDelete()

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

Overrides ConfigEntityBase::invalidateTagsOnDelete

File

src/Entity/TagSet.php, line 120

Class

TagSet
Represents a set of configured tags.

Namespace

Drupal\xbbcode\Entity

Code

protected static function invalidateTagsOnDelete(EntityTypeInterface $entity_type, array $entities) : void {

  /** @var \Drupal\xbbcode\Entity\TagSet[] $entities */
  parent::invalidateTagsOnDelete($entity_type, $entities);
  $tags = [];
  foreach ($entities as $entity) {
    $tags += $entity
      ->filterFormatCacheTags();
  }
  if ($tags) {
    filter_formats_reset();
    Cache::invalidateTags($tags);
  }
}