/** * {@inheritdoc} */ public function build(PanelsDisplayVariant $panels_display) { $regions = $panels_display->getRegionAssignments(); return $regions; }
/** * {@inheritdoc} */ public function build(PanelsDisplayVariant $panels_display) { $regions = $panels_display->getRegionAssignments(); $contexts = $panels_display->getContexts(); $layout = $panels_display->getLayout(); $regions = $this->buildRegions($regions, $contexts); if ($layout) { $regions = $layout->build($regions); } return $regions; }