function LayoutInterface::build

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Layout/LayoutInterface.php \Drupal\Core\Layout\LayoutInterface::build()
  2. 10 core/lib/Drupal/Core/Layout/LayoutInterface.php \Drupal\Core\Layout\LayoutInterface::build()
  3. 8.9.x core/lib/Drupal/Core/Layout/LayoutInterface.php \Drupal\Core\Layout\LayoutInterface::build()

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.

File

core/lib/Drupal/Core/Layout/LayoutInterface.php, line 26

Class

LayoutInterface
Provides an interface for static Layout plugins.

Namespace

Drupal\Core\Layout

Code

public function build(array $regions);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.