You are here

public function ContextInterface::getCondition in Context 8.0

Same name and namespace in other branches
  1. 8.4 src/ContextInterface.php \Drupal\context\ContextInterface::getCondition()
  2. 8 src/ContextInterface.php \Drupal\context\ContextInterface::getCondition()

Get a condition with the specified ID.

Parameters

string $condition_id: The condition to get.

Return value

\Drupal\Core\Condition\ConditionInterface

1 method overrides ContextInterface::getCondition()
Context::getCondition in src/Entity/Context.php
Get a condition with the specified ID.

File

src/ContextInterface.php, line 138

Class

ContextInterface

Namespace

Drupal\context

Code

public function getCondition($condition_id);