public function NodeGrantDatabaseStorage::count in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/NodeGrantDatabaseStorage.php \Drupal\node\NodeGrantDatabaseStorage::count()
Counts available node grants.
Return value
int Returns the amount of node grants.
Overrides NodeGrantDatabaseStorageInterface::count
File
- core/
modules/ node/ src/ NodeGrantDatabaseStorage.php, line 270 - Contains \Drupal\node\NodeGrantDatabaseStorage.
Class
- NodeGrantDatabaseStorage
- Defines a controller class that handles the node grants system.
Namespace
Drupal\nodeCode
public function count() {
return $this->database
->query('SELECT COUNT(*) FROM {node_access}')
->fetchField();
}