function CurrentLanguageContext::getAvailableContexts

Same name in other branches
  1. 9 core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php \Drupal\Core\Language\ContextProvider\CurrentLanguageContext::getAvailableContexts()
  2. 8.9.x core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php \Drupal\Core\Language\ContextProvider\CurrentLanguageContext::getAvailableContexts()
  3. 10 core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php \Drupal\Core\Language\ContextProvider\CurrentLanguageContext::getAvailableContexts()

Overrides ContextProviderInterface::getAvailableContexts

File

core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php, line 71

Class

CurrentLanguageContext
Sets the current language as a context.

Namespace

Drupal\Core\Language\ContextProvider

Code

public function getAvailableContexts() {
    return $this->getRuntimeContexts([]);
}

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