You are here

public function NodeGrantDatabaseStorage::delete in Drupal 8

Same name and namespace in other branches
  1. 9 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 250

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();
}