Sets the condition context for a given name.
string $name: The name of the context.
\Drupal\Component\Plugin\Context\ContextInterface $context: The context to add.
$this
public function addContext($name, ContextInterface $context) { $this->conditionContexts[$name] = $context; return $this; }