protected static function Synonym::invalidateTagsOnDelete in Synonyms 2.0.x
Same name and namespace in other branches
- 8 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 229
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());
}