function NodeType::postDelete

Overrides ConfigEntityBundleBase::postDelete

File

core/modules/node/src/Entity/NodeType.php, line 214

Class

NodeType
Defines the Node type configuration entity.

Namespace

Drupal\node\Entity

Code

public static function postDelete(EntityStorageInterface $storage, array $entities) {
  parent::postDelete($storage, $entities);
  // Clear the node type cache to reflect the removal.
  $storage->resetCache(array_keys($entities));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.