You are here

public function Context::setRequireAllConditions in Context 8.4

Same name and namespace in other branches
  1. 8 src/Entity/Context.php \Drupal\context\Entity\Context::setRequireAllConditions()
  2. 8.0 src/Entity/Context.php \Drupal\context\Entity\Context::setRequireAllConditions()

Set if all conditions should be required for this context to validate.

Parameters

bool $require: If a condition is required or not.

Return value

$this This Context object.

Overrides ContextInterface::setRequireAllConditions

File

src/Entity/Context.php, line 247

Class

Context
Defines the Context entity.

Namespace

Drupal\context\Entity

Code

public function setRequireAllConditions($require) {
  $this->requireAllConditions = (bool) $require;
  return $this;
}