public function ContextInterface::hasCondition in Context 8.0
Same name and namespace in other branches
- 8.4 src/ContextInterface.php \Drupal\context\ContextInterface::hasCondition()
- 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
Namespace
Drupal\contextCode
public function hasCondition($condition_id);