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(); }

NodeGrantDatabaseStorage::checkAll

public NodeGrantDatabaseStorage::checkAll(AccountInterface $account) Checks all grants for a given account. Parameters \Drupal\Core\Session\AccountInterface $account: A user object representing the user for whom the operation is to be performed. Return value int. Status of the access check. Overrides NodeGrantDatabaseStorageInterface::checkAll File core/modules/node/src/NodeGrantDatabaseStorage.php, line 132 Class NodeGrantDatabaseStorage Defines a storage handler class that handles the

NodeGrantDatabaseStorage::buildGrantsQueryCondition

protected static NodeGrantDatabaseStorage::buildGrantsQueryCondition(array $node_access_grants) Creates a query condition from an array of node access grants. Parameters array $node_access_grants: An array of grants, as returned by node_access_grants(). Return value \Drupal\Core\Database\Query\Condition A condition object to be passed to $query->condition(). See also node_access_grants() File core/modules/node/src/NodeGrantDatabaseStorage.php, line 293 Class NodeGrantDatabaseStorage

NodeGrantDatabaseStorage::alterQuery

public NodeGrantDatabaseStorage::alterQuery($query, array $tables, $op, AccountInterface $account, $base_table) Alters a query when node access is required. Parameters mixed $query: Query that is being altered. array $tables: A list of tables that need to be part of the alter. string $op: The operation to be performed on the node. Possible values are: "view" "update" "delete" "create" \Drupal\Core\Session\AccountInterface $account: A user object representing the user for whom the operation i

NodeGrantDatabaseStorage::access

public NodeGrantDatabaseStorage::access(NodeInterface $node, $operation, AccountInterface $account) Determines access to nodes based on node grants. Parameters \Drupal\node\NodeInterface $node: The entity for which to check 'create' access. string $operation: The entity operation. Usually one of 'view', 'edit', 'create' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user for which to check access. Return value \Drupal\Core\Access\AccessResultInterface The access result, eith

NodeGrantDatabaseStorage::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/node/src/NodeGrantDatabaseStorage.php, line 34 Class NodeGrantDatabaseStorage Defines a storage handler class that handles the node grants system. Namespace Drupal\node Code protected $moduleHandler;

NodeGrantDatabaseStorage::$languageManager

The language manager. Type: \Drupal\Core\Language\LanguageManagerInterface File core/modules/node/src/NodeGrantDatabaseStorage.php, line 41 Class NodeGrantDatabaseStorage Defines a storage handler class that handles the node grants system. Namespace Drupal\node Code protected $languageManager;

NodeGrantDatabaseStorage::$database

The database connection. Type: \Drupal\Core\Database\Connection File core/modules/node/src/NodeGrantDatabaseStorage.php, line 27 Class NodeGrantDatabaseStorage Defines a storage handler class that handles the node grants system. Namespace Drupal\node Code protected $database;

NodeGrantDatabaseStorage

Defines a storage handler class that handles the node grants system. This is used to build node query access. Hierarchy class \Drupal\node\NodeGrantDatabaseStorage implements NodeGrantDatabaseStorageInterface 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 prote

NodeForm::__construct

public NodeForm::__construct(EntityManagerInterface $entity_manager, PrivateTempStoreFactory $temp_store_factory) Constructs a ContentEntityForm object. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\user\PrivateTempStoreFactory $temp_store_factory: The factory for the temp store object. Overrides ContentEntityForm::__construct File core/modules/node/src/NodeForm.php, line 36 Class NodeForm Form handler for the node edit forms. Namespa