public function BlankLayout::build in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php \Drupal\layout_builder\Plugin\Layout\BlankLayout::build()
- 10 core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php \Drupal\layout_builder\Plugin\Layout\BlankLayout::build()
Build a render array for layout with regions.
Parameters
array $regions: An associative array keyed by region name, containing render arrays representing the content that should be placed in each region.
Return value
array Render array for the layout with regions.
Overrides LayoutDefault::build
File
- core/
modules/ layout_builder/ src/ Plugin/ Layout/ BlankLayout.php, line 26
Class
- BlankLayout
- Provides a layout plugin that produces no output.
Namespace
Drupal\layout_builder\Plugin\LayoutCode
public function build(array $regions) {
// Return no output.
return [];
}