8.2.x ConfigEntityBase.php protected static ConfigEntityBase::invalidateTagsOnDelete(EntityTypeInterface $entity_type, array $entities)
8.0.x ConfigEntityBase.php protected static ConfigEntityBase::invalidateTagsOnDelete(EntityTypeInterface $entity_type, array $entities)
8.1.x ConfigEntityBase.php protected static ConfigEntityBase::invalidateTagsOnDelete(EntityTypeInterface $entity_type, array $entities)
8.3.x ConfigEntityBase.php protected static ConfigEntityBase::invalidateTagsOnDelete(EntityTypeInterface $entity_type, array $entities)

Override to never invalidate the individual entities' cache tags; the config system already invalidates them.

Overrides Entity::invalidateTagsOnDelete

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 526

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

protected static function invalidateTagsOnDelete(EntityTypeInterface $entity_type, array $entities) {
  Cache::invalidateTags($entity_type->getListCacheTags());
}