You are here

public function DisplayBuilderBase::build in Panels 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/DisplayBuilder/DisplayBuilderBase.php \Drupal\panels\Plugin\DisplayBuilder\DisplayBuilderBase::build()

Renders a Panels display.

This is the outermost method in the Panels render pipeline. It calls the inner methods, which return a content array, which is in turn passed to the theme function specified in the layout plugin.

Parameters

Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant: The Panels display variant to render.

Return value

array Render array modified by the display builder.

Overrides DisplayBuilderInterface::build

1 method overrides DisplayBuilderBase::build()
StandardDisplayBuilder::build in src/Plugin/DisplayBuilder/StandardDisplayBuilder.php
Renders a Panels display.

File

src/Plugin/DisplayBuilder/DisplayBuilderBase.php, line 20

Class

DisplayBuilderBase
Provides base class for Display Builder plugins.

Namespace

Drupal\panels\Plugin\DisplayBuilder

Code

public function build(PanelsDisplayVariant $panels_display) {
  $regions = $panels_display
    ->getRegionAssignments();
  return $regions;
}