public 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
Class
- NodeGrantDatabaseStorage
- Defines a storage handler class that handles the node grants system.
Namespace
Drupal\node
Code
public function count() { return $this->database->query('SELECT COUNT(*) FROM {node_access}')->fetchField(); }
Please login to continue.