protected function Fields::buildLayoutRenderArray in Layout Plugin Views 8
Same name and namespace in other branches
- 8.2 src/Plugin/views/row/Fields.php \Drupal\layout_plugin_views\Plugin\views\row\Fields::buildLayoutRenderArray()
Builds a renderable array for the selected layout.
Parameters
MarkupInterface[] $rendered_regions: An array of MarkupInterface objects keyed by the machine name of the region they should be rendered in. @see ::renderFieldsIntoRegions.
Return value
array Renderable array for the selected layout.
1 call to Fields::buildLayoutRenderArray()
- Fields::render in src/
Plugin/ views/ row/ Fields.php - Render a row object. This usually passes through to a theme template of some form, but not always.
File
- src/
Plugin/ views/ row/ Fields.php, line 237
Class
- Fields
- The layout_plugin_views 'fields' row plugin
Namespace
Drupal\layout_plugin_views\Plugin\views\rowCode
protected function buildLayoutRenderArray(array $rendered_regions) {
if (!empty($rendered_regions)) {
/** @var \Drupal\layout_plugin\Plugin\Layout\LayoutInterface $layout */
$layout = $this->layoutPluginManager
->createInstance($this->pluginOptions
->getLayout(), []);
return $layout
->build($rendered_regions);
}
return $rendered_regions;
}