public function NodeGrantDatabaseStorageInterface::access in Drupal 9
Same name and namespace in other branches
- 8 core/modules/node/src/NodeGrantDatabaseStorageInterface.php \Drupal\node\NodeGrantDatabaseStorageInterface::access()
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, either allowed or neutral. If there are no node grants, the default grant defined by writeDefault() is applied.
See also
\Drupal\node\NodeGrantDatabaseStorageInterface::writeDefault()
1 method overrides NodeGrantDatabaseStorageInterface::access()
- NodeGrantDatabaseStorage::access in core/
modules/ node/ src/ NodeGrantDatabaseStorage.php - Determines access to nodes based on node grants.
File
- core/
modules/ node/ src/ NodeGrantDatabaseStorageInterface.php, line 108
Class
- NodeGrantDatabaseStorageInterface
- Provides an interface for node access grant storage.
Namespace
Drupal\nodeCode
public function access(NodeInterface $node, $operation, AccountInterface $account);