You are here

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

Class

BaseThreeColumnsLayout
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--three-columns';
  return $build;
}