function Node::postDelete

Same name in other branches
  1. 9 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::postDelete()
  2. 10 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::postDelete()
  3. 11.x core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::postDelete()

Overrides EntityBase::postDelete

File

core/modules/node/src/Entity/Node.php, line 178

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

public static function postDelete(EntityStorageInterface $storage, array $nodes) {
    parent::postDelete($storage, $nodes);
    \Drupal::service('node.grant_storage')->deleteNodeRecords(array_keys($nodes));
}

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