public function NodeGrantDatabaseStorageInterface::alterQuery in Drupal 9
Same name and namespace in other branches
- 8 core/modules/node/src/NodeGrantDatabaseStorageInterface.php \Drupal\node\NodeGrantDatabaseStorageInterface::alterQuery()
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 is to be performed.
string $base_table: The base table of the query.
Return value
int Status of the access check.
1 method overrides NodeGrantDatabaseStorageInterface::alterQuery()
- NodeGrantDatabaseStorage::alterQuery in core/
modules/ node/ src/ NodeGrantDatabaseStorage.php - Alters a query when node access is required.
File
- core/
modules/ node/ src/ NodeGrantDatabaseStorageInterface.php, line 48
Class
- NodeGrantDatabaseStorageInterface
- Provides an interface for node access grant storage.
Namespace
Drupal\nodeCode
public function alterQuery($query, array $tables, $op, AccountInterface $account, $base_table);