function NodeGrantDatabaseStorage::deleteNodeRecords

Same name in other branches
  1. 9 core/modules/node/src/NodeGrantDatabaseStorage.php \Drupal\node\NodeGrantDatabaseStorage::deleteNodeRecords()
  2. 8.9.x core/modules/node/src/NodeGrantDatabaseStorage.php \Drupal\node\NodeGrantDatabaseStorage::deleteNodeRecords()
  3. 10 core/modules/node/src/NodeGrantDatabaseStorage.php \Drupal\node\NodeGrantDatabaseStorage::deleteNodeRecords()

File

core/modules/node/src/NodeGrantDatabaseStorage.php, line 298

Class

NodeGrantDatabaseStorage
Defines a storage handler class that handles the node grants system.

Namespace

Drupal\node

Code

public function deleteNodeRecords(array $nids) {
    $this->database
        ->delete('node_access')
        ->condition('nid', $nids, 'IN')
        ->execute();
}

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