protected static function Tag::invalidateTagsOnDelete in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 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 197
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);
}
}