function ConditionPluginCollection::getConditionContexts

Same name in other branches
  1. 9 core/lib/Drupal/Core/Condition/ConditionPluginCollection.php \Drupal\Core\Condition\ConditionPluginCollection::getConditionContexts()
  2. 8.9.x core/lib/Drupal/Core/Condition/ConditionPluginCollection.php \Drupal\Core\Condition\ConditionPluginCollection::getConditionContexts()
  3. 11.x core/lib/Drupal/Core/Condition/ConditionPluginCollection.php \Drupal\Core\Condition\ConditionPluginCollection::getConditionContexts()

Gets the values for all defined contexts.

Return value

\Drupal\Component\Plugin\Context\ContextInterface[] An array of set contexts, keyed by context name.

File

core/lib/Drupal/Core/Condition/ConditionPluginCollection.php, line 80

Class

ConditionPluginCollection
Provides a collection of condition plugins.

Namespace

Drupal\Core\Condition

Code

public function getConditionContexts() {
    return $this->conditionContexts;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.