NodeGrantDatabaseStorage

Defines a storage handler class that handles the node grants system.

This is used to build node query access.

Hierarchy

Related topics

Node access rights
The node access system determines who can do what to which nodes.

File

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

Namespace

Drupal\node

Members

Name Modifiers Type Description
NodeGrantDatabaseStorage::$database protected property The database connection.
NodeGrantDatabaseStorage::$languageManager protected property The language manager.
NodeGrantDatabaseStorage::$moduleHandler protected property The module handler.
NodeGrantDatabaseStorage::access public function Determines access to nodes based on node grants. Overrides NodeGrantDatabaseStorageInterface::access
NodeGrantDatabaseStorage::alterQuery public function Alters a query when node access is required. Overrides NodeGrantDatabaseStorageInterface::alterQuery
NodeGrantDatabaseStorage::buildGrantsQueryCondition protected static function Creates a query condition from an array of node access grants.
NodeGrantDatabaseStorage::checkAll public function Checks all grants for a given account. Overrides NodeGrantDatabaseStorageInterface::checkAll
NodeGrantDatabaseStorage::count public function Counts available node grants. Overrides NodeGrantDatabaseStorageInterface::count
NodeGrantDatabaseStorage::delete public function Deletes all node access entries. Overrides NodeGrantDatabaseStorageInterface::delete
NodeGrantDatabaseStorage::deleteNodeRecords public function Remove the access records belonging to certain nodes. Overrides NodeGrantDatabaseStorageInterface::deleteNodeRecords
NodeGrantDatabaseStorage::write public function Writes a list of grants to the database, deleting previously saved ones. Overrides NodeGrantDatabaseStorageInterface::write
NodeGrantDatabaseStorage::writeDefault public function Creates the default node access grant entry. Overrides NodeGrantDatabaseStorageInterface::writeDefault
NodeGrantDatabaseStorage::__construct public function Constructs a NodeGrantDatabaseStorage object.
doc_Drupal
2016-10-29 09:30:47
Comments
Leave a Comment

Please login to continue.