You are here

protected static function TagSet::invalidateTagsOnDelete in Extensible BBCode 4.0.x

Same name and namespace in other branches
  1. 8.3 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 119

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);
  }
}