You are here

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

Class

BaseTwoColumnsLayout
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--two-columns';
  return $build;
}