public function Context::removeCondition in Context 8
Same name and namespace in other branches
- 8.4 src/Entity/Context.php \Drupal\context\Entity\Context::removeCondition()
- 8.0 src/Entity/Context.php \Drupal\context\Entity\Context::removeCondition()
Remove the specified condition.
Parameters
string $condition_id: The id of the condition to remove.
Return value
$this
Overrides ContextInterface::removeCondition
File
- src/
Entity/ Context.php, line 286
Class
- Context
- Defines the Context entity.
Namespace
Drupal\context\EntityCode
public function removeCondition($condition_id) {
$this
->getConditions()
->removeInstanceId($condition_id);
return $this;
}