NodeGrantDatabaseStorage::delete

public NodeGrantDatabaseStorage::delete()

Deletes all node access entries.

Overrides NodeGrantDatabaseStorageInterface::delete

File

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

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();
}
doc_Drupal
2016-10-29 09:30:49
Comments
Leave a Comment

Please login to continue.