You are here

public function NodeGrantDatabaseStorage::delete in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/node/src/NodeGrantDatabaseStorage.php \Drupal\node\NodeGrantDatabaseStorage::delete()

Deletes all node access entries.

Overrides NodeGrantDatabaseStorageInterface::delete

File

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

Class

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

Namespace

Drupal\node

Code

public function delete() {
  $this->database
    ->truncate('node_access')
    ->execute();
}