function NodeType::postDelete
Same name in other branches
- 9 core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::postDelete()
- 10 core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::postDelete()
- 11.x core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::postDelete()
Overrides ConfigEntityBundleBase::postDelete
File
-
core/
modules/ node/ src/ Entity/ NodeType.php, line 209
Class
- NodeType
- Defines the Node type configuration entity.
Namespace
Drupal\node\EntityCode
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.