public function NodeGrantDatabaseStorage::delete in Drupal 8
Same name and namespace in other branches
- 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\nodeCode
public function delete() {
$this->database
->truncate('node_access')
->execute();
}