You are here

public function ContextInterface::hasCondition in Context 8.0

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

Check to see if the context has the specified condition.

Parameters

string $condition_id: The ID of the condition to check for.

Return value

bool

1 method overrides ContextInterface::hasCondition()
Context::hasCondition in src/Entity/Context.php
Check to see if the context has the specified condition.

File

src/ContextInterface.php, line 168

Class

ContextInterface

Namespace

Drupal\context

Code

public function hasCondition($condition_id);