You are here

public function ContextInterface::hasCondition in Context 8.4

Same name and namespace in other branches
  1. 8 src/ContextInterface.php \Drupal\context\ContextInterface::hasCondition()
  2. 8.0 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 TRUE if the context has the specified condition, FALSE if not.

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 190

Class

ContextInterface
Provides an interface for Context.

Namespace

Drupal\context

Code

public function hasCondition($condition_id);