function IHaveRuntimeContexts::build
Same name in other branches
- 9 core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/IHaveRuntimeContexts.php \Drupal\layout_builder_test\Plugin\Block\IHaveRuntimeContexts::build()
- 10 core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/IHaveRuntimeContexts.php \Drupal\layout_builder_test\Plugin\Block\IHaveRuntimeContexts::build()
Overrides BlockPluginInterface::build
File
-
core/
modules/ layout_builder/ tests/ modules/ layout_builder_test/ src/ Plugin/ Block/ IHaveRuntimeContexts.php, line 28
Class
- IHaveRuntimeContexts
- Defines a class for a context-aware block.
Namespace
Drupal\layout_builder_test\Plugin\BlockCode
public function build() {
return [
'#markup' => $this->getContextValue('runtime_contexts'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.