14 invocations of hook_node_grants() in Drupal 9
- CommentSelection::entityQueryAlter in core/
modules/ comment/ src/ Plugin/ EntityReferenceSelection/ CommentSelection.php - Allows the selection to alter the SelectQuery generated by EntityFieldQuery.
- NodeAccessCacheabilityWithNodeGrants::testAccessCacheabilityWithNodeGrants in core/
modules/ node/ tests/ src/ Functional/ NodeAccessCacheabilityWithNodeGrants.php - Tests node view access cacheability with node grants.
- NodeAccessGrantsCacheContext::getCacheableMetadata in core/
modules/ node/ src/ Cache/ NodeAccessGrantsCacheContext.php - Gets the cacheability metadata for the context based on the parameter value.
- NodeGrantDatabaseStorage::access in core/
modules/ node/ src/ NodeGrantDatabaseStorage.php - Determines access to nodes based on node grants.
- NodeGrantDatabaseStorage::write in core/
modules/ node/ src/ NodeGrantDatabaseStorage.php - Writes a list of grants to the database, deleting previously saved ones.
- NodeSelection::buildEntityQuery in core/
modules/ node/ src/ Plugin/ EntityReferenceSelection/ NodeSelection.php - Builds an EntityQuery to get referenceable entities.
- NodeSelection::validateReferenceableNewEntities in core/
modules/ node/ src/ Plugin/ EntityReferenceSelection/ NodeSelection.php - Validates which newly created entities can be referenced.
- node_access_grants in core/
modules/ node/ node.module - Fetches an array of permission IDs granted to the given user ID.
- node_access_rebuild in core/
modules/ node/ node.module - Rebuilds the node access database.
- node_access_view_all_nodes in core/
modules/ node/ node.module - Determines whether the user has a global viewing grant for all nodes.
- node_modules_installed in core/
modules/ node/ node.module - Implements hook_modules_installed().
- node_modules_uninstalled in core/
modules/ node/ node.module - Implements hook_modules_uninstalled().
- node_query_node_access_alter in core/
modules/ node/ node.module - Implements hook_query_TAG_alter().
- node_requirements in core/
modules/ node/ node.install - Implements hook_requirements().