function CurrentUserContext::getAvailableContexts

Same name in other branches
  1. 9 core/modules/user/src/ContextProvider/CurrentUserContext.php \Drupal\user\ContextProvider\CurrentUserContext::getAvailableContexts()
  2. 8.9.x core/modules/user/src/ContextProvider/CurrentUserContext.php \Drupal\user\ContextProvider\CurrentUserContext::getAvailableContexts()
  3. 11.x core/modules/user/src/ContextProvider/CurrentUserContext.php \Drupal\user\ContextProvider\CurrentUserContext::getAvailableContexts()

Overrides ContextProviderInterface::getAvailableContexts

File

core/modules/user/src/ContextProvider/CurrentUserContext.php, line 78

Class

CurrentUserContext
Sets the current user as a context.

Namespace

Drupal\user\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.