function FakeViewModeContext::getAvailableContexts
Same name in other branches
- 9 core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/ContextProvider/FakeViewModeContext.php \Drupal\layout_builder_fieldblock_test\ContextProvider\FakeViewModeContext::getAvailableContexts()
- 8.9.x core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/ContextProvider/FakeViewModeContext.php \Drupal\layout_builder_fieldblock_test\ContextProvider\FakeViewModeContext::getAvailableContexts()
- 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\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.