You are here

public function NodeGrantDatabaseStorage::delete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 247
Contains \Drupal\node\NodeGrantDatabaseStorage.

Class

NodeGrantDatabaseStorage
Defines a controller class that handles the node grants system.

Namespace

Drupal\node

Code

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