You are here

public function ConditionGroup::alwaysFalse in Entity API 8

Sets whether the condition group should always be FALSE.

Parameters

bool $always_false: Whether the condition group should always be FALSE.

Return value

$this

File

src/QueryAccess/ConditionGroup.php, line 149

Class

ConditionGroup
Represents a group of query access conditions.

Namespace

Drupal\entity\QueryAccess

Code

public function alwaysFalse($always_false = TRUE) {
  $this->alwaysFalse = $always_false;
  return $this;
}