public function BaseCustomizableColumnsLayout::build in Layout Builder Base 8
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 BaseOneColumnLayout::build
File
- modules/
layout_builder_base_library/ src/ Plugin/ Layout/ BaseCustomizableColumnsLayout.php, line 17
Class
- BaseCustomizableColumnsLayout
- Configurable layout plugin class.
Namespace
Drupal\layout_builder_base_library\Plugin\LayoutCode
public function build(array $regions) {
$build = parent::build($regions);
$build['#attributes']['class'][] = 'layout-builder-base--customizable-columns';
return $build;
}