public function QueryBase::accessCheck in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Query/QueryBase.php \Drupal\Core\Entity\Query\QueryBase::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
Overrides QueryInterface::accessCheck
File
- core/
lib/ Drupal/ Core/ Entity/ Query/ QueryBase.php, line 252
Class
- QueryBase
- The base entity query class.
Namespace
Drupal\Core\Entity\QueryCode
public function accessCheck($access_check = TRUE) {
$this->accessCheck = $access_check;
return $this;
}