You are here

public function ContextInterface::getCondition in Context 8.4

Same name and namespace in other branches
  1. 8 src/ContextInterface.php \Drupal\context\ContextInterface::getCondition()
  2. 8.0 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 The specific Condition.

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

File

src/ContextInterface.php, line 157

Class

ContextInterface
Provides an interface for Context.

Namespace

Drupal\context

Code

public function getCondition($condition_id);