You are here

public function BaseFourColumnsLayout::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/BaseFourColumnsLayout.php, line 16

Class

BaseFourColumnsLayout
Configurable layout plugin class.

Namespace

Drupal\layout_builder_base_library\Plugin\Layout

Code

public function build(array $regions) {
  $build = parent::build($regions);
  $build['#attributes']['class'][] = 'layout-builder-base--four-columns';
  return $build;
}