You are here

abstract protected function QueryAccessHandlerBase::buildConditions in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Access/QueryAccessHandlerBase.php \Drupal\group\Entity\Access\QueryAccessHandlerBase::buildConditions()

Builds the conditions for the given operation and account.

Parameters

string $operation: The access operation. Usually one of "view", "update" or "delete".

\Drupal\Core\Session\AccountInterface $account: The user for which to restrict access.

Return value

\Drupal\entity\QueryAccess\ConditionGroup The conditions.

1 call to QueryAccessHandlerBase::buildConditions()
QueryAccessHandlerBase::getConditions in src/Entity/Access/QueryAccessHandlerBase.php
Gets the conditions for the given operation and user.
2 methods override QueryAccessHandlerBase::buildConditions()
GroupContentQueryAccessHandler::buildConditions in src/Entity/Access/GroupContentQueryAccessHandler.php
Builds the conditions for the given operation and account.
GroupQueryAccessHandler::buildConditions in src/Entity/Access/GroupQueryAccessHandler.php
Builds the conditions for the given operation and account.

File

src/Entity/Access/QueryAccessHandlerBase.php, line 107

Class

QueryAccessHandlerBase
Controls query access for the Group module's entities.

Namespace

Drupal\group\Entity\Access

Code

protected abstract function buildConditions($operation, AccountInterface $account);