NodeGrantDatabaseStorage::count

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

Please login to continue.