public function QueryAccessHandlerInterface::getConditions in Entity API 8
Gets the conditions for the given operation and user.
The "entity.query_access.$entity_type_id" event is fired to allow modules to alter the conditions.
Parameters
string $operation: The access operation. Usually one of "view", "update", "duplicate", or "delete".
\Drupal\Core\Session\AccountInterface $account: The user for which to restrict access, or NULL to assume the current user. Defaults to NULL.
Return value
\Drupal\entity\QueryAccess\ConditionGroup The conditions.
2 methods override QueryAccessHandlerInterface::getConditions()
- EventOnlyQueryAccessHandler::getConditions in src/
QueryAccess/ EventOnlyQueryAccessHandler.php - Gets the conditions for the given operation and user.
- QueryAccessHandlerBase::getConditions in src/
QueryAccess/ QueryAccessHandlerBase.php - Gets the conditions for the given operation and user.
File
- src/
QueryAccess/ QueryAccessHandlerInterface.php, line 40
Class
- QueryAccessHandlerInterface
- Query access handlers control access to entities in queries.
Namespace
Drupal\entity\QueryAccessCode
public function getConditions($operation, AccountInterface $account = NULL);