You are here

public function NodeGrantDatabaseStorageInterface::alterQuery in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 53
Contains \Drupal\node\NodeGrantDatabaseStorageInterface.

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