public NodeGrantDatabaseStorageInterface::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 is to be performed.
string $base_table: The base table of the query.
Return value
int Status of the access check.
File
- core/modules/node/src/NodeGrantDatabaseStorageInterface.php, line 48
Class
- NodeGrantDatabaseStorageInterface
- Provides an interface for node access grant storage.
Namespace
Drupal\node
Code
public function alterQuery($query, array $tables, $op, AccountInterface $account, $base_table);
Please login to continue.