protected static function Tag::invalidateTagsOnDelete in Extensible BBCode 8.3
Same name and namespace in other branches
- 4.0.x src/Entity/Tag.php \Drupal\xbbcode\Entity\Tag::invalidateTagsOnDelete()
Override to never invalidate the individual entities' cache tags; the config system already invalidates them.
Overrides ConfigEntityBase::invalidateTagsOnDelete
File
- src/
Entity/ Tag.php, line 198
Class
- Tag
- Represents a custom XBBCode tag that can be altered by administrators.
Namespace
Drupal\xbbcode\EntityCode
protected static function invalidateTagsOnDelete(EntityTypeInterface $entity_type, array $entities) : void {
/** @var \Drupal\xbbcode\Entity\Tag[] $entities */
parent::invalidateTagsOnDelete($entity_type, $entities);
$tags = [];
foreach ($entities as $entity) {
$tags += $entity
->filterFormatCacheTags();
}
if ($tags) {
filter_formats_reset();
Cache::invalidateTags($tags);
}
}