You are here

public function QueryInterface::accessCheck in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::accessCheck()
  2. 9 core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::accessCheck()

Enables or disables access checking for this query.

Parameters

bool $access_check: (optional) Whether access check is requested or not. Defaults to TRUE.

Return value

$this

1 method overrides QueryInterface::accessCheck()
QueryBase::accessCheck in core/lib/Drupal/Core/Entity/Query/QueryBase.php
Enables or disables access checking for this query.

File

core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 221

Class

QueryInterface
Interface for entity queries.

Namespace

Drupal\Core\Entity\Query

Code

public function accessCheck($access_check = TRUE);