function MultipleStaticContext::getAvailableContexts

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

Overrides ContextProviderInterface::getAvailableContexts

File

core/modules/block/tests/modules/block_test/src/ContextProvider/MultipleStaticContext.php, line 67

Class

MultipleStaticContext
Sets multiple contexts for a static value.

Namespace

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