You are here

public function BaseOneColumnLayout::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 BaseLayoutBase::build

4 calls to BaseOneColumnLayout::build()
BaseCustomizableColumnsLayout::build in modules/layout_builder_base_library/src/Plugin/Layout/BaseCustomizableColumnsLayout.php
Build a render array for layout with regions.
BaseFourColumnsLayout::build in modules/layout_builder_base_library/src/Plugin/Layout/BaseFourColumnsLayout.php
Build a render array for layout with regions.
BaseThreeColumnsLayout::build in modules/layout_builder_base_library/src/Plugin/Layout/BaseThreeColumnsLayout.php
Build a render array for layout with regions.
BaseTwoColumnsLayout::build in modules/layout_builder_base_library/src/Plugin/Layout/BaseTwoColumnsLayout.php
Build a render array for layout with regions.
4 methods override BaseOneColumnLayout::build()
BaseCustomizableColumnsLayout::build in modules/layout_builder_base_library/src/Plugin/Layout/BaseCustomizableColumnsLayout.php
Build a render array for layout with regions.
BaseFourColumnsLayout::build in modules/layout_builder_base_library/src/Plugin/Layout/BaseFourColumnsLayout.php
Build a render array for layout with regions.
BaseThreeColumnsLayout::build in modules/layout_builder_base_library/src/Plugin/Layout/BaseThreeColumnsLayout.php
Build a render array for layout with regions.
BaseTwoColumnsLayout::build in modules/layout_builder_base_library/src/Plugin/Layout/BaseTwoColumnsLayout.php
Build a render array for layout with regions.

File

modules/layout_builder_base_library/src/Plugin/Layout/BaseOneColumnLayout.php, line 416

Class

BaseOneColumnLayout
Configurable layout plugin class.

Namespace

Drupal\layout_builder_base_library\Plugin\Layout

Code

public function build(array $regions) {
  $build = parent::build($regions);
  $build['#attached']['library'][] = 'layout_builder_base_library/layout-builder-base-library';
  return $build;
}