function CurrentUserContext::getAvailableContexts
Same name in other branches
- 9 core/modules/user/src/ContextProvider/CurrentUserContext.php \Drupal\user\ContextProvider\CurrentUserContext::getAvailableContexts()
- 10 core/modules/user/src/ContextProvider/CurrentUserContext.php \Drupal\user\ContextProvider\CurrentUserContext::getAvailableContexts()
- 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\ContextProviderCode
public function getAvailableContexts() {
return $this->getRuntimeContexts([]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.