public function Context::setRequireAllConditions in Context 8
Same name and namespace in other branches
- 8.4 src/Entity/Context.php \Drupal\context\Entity\Context::setRequireAllConditions()
- 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
Overrides ContextInterface::setRequireAllConditions
File
- src/
Entity/ Context.php, line 244
Class
- Context
- Defines the Context entity.
Namespace
Drupal\context\EntityCode
public function setRequireAllConditions($require) {
$this->requireAllConditions = (bool) $require;
return $this;
}