protected static function Synonym::invalidateTagsOnDelete in Synonyms 8
Same name and namespace in other branches
- 2.0.x src/Entity/Synonym.php \Drupal\synonyms\Entity\Synonym::invalidateTagsOnDelete()
Override to never invalidate the individual entities' cache tags; the config system already invalidates them.
Overrides ConfigEntityBase::invalidateTagsOnDelete
File
- src/
Entity/ Synonym.php, line 249
Class
- Synonym
- Synonym configuration entity.
Namespace
Drupal\synonyms\EntityCode
protected static function invalidateTagsOnDelete(EntityTypeInterface $entity_type, array $entities) {
$cacheability_metadata = new CacheableMetadata();
foreach ($entities as $entity) {
$cacheability_metadata
->addCacheableDependency($entity);
}
Cache::invalidateTags($cacheability_metadata
->getCacheTags());
}