public function QueryAccessEvent::getConditions in Entity API 8
Gets the conditions.
If $conditions->isAlwaysFalse() is TRUE, the user doesn't have access to any entities, and the query is expected to return no results. This can be reversed by calling $conditions->alwaysFalse(FALSE).
If $conditions->isAlwaysFalse() is FALSE, and the condition group is empty (count is 0), the user has full access, and the query doesn't need to be restricted.
Return value
\Drupal\entity\QueryAccess\ConditionGroup The conditions.
File
- src/
QueryAccess/ QueryAccessEvent.php, line 85
Class
- QueryAccessEvent
- Defines the query access event.
Namespace
Drupal\entity\QueryAccessCode
public function getConditions() {
return $this->conditions;
}