function FakeViewModeContext::getAvailableContexts

Same name in other branches
  1. 9 core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/ContextProvider/FakeViewModeContext.php \Drupal\layout_builder_fieldblock_test\ContextProvider\FakeViewModeContext::getAvailableContexts()
  2. 10 core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/ContextProvider/FakeViewModeContext.php \Drupal\layout_builder_fieldblock_test\ContextProvider\FakeViewModeContext::getAvailableContexts()
  3. 11.x core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/ContextProvider/FakeViewModeContext.php \Drupal\layout_builder_fieldblock_test\ContextProvider\FakeViewModeContext::getAvailableContexts()

Overrides ContextProviderInterface::getAvailableContexts

File

core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/ContextProvider/FakeViewModeContext.php, line 26

Class

FakeViewModeContext
Provides a global context for view_mode for testing purposes.

Namespace

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