1 layout_renderer_editor.inc | LayoutRendererEditor::renderBlocks() |
Render all prepared blocks, first by dispatching to their plugin's render callback, then handing that output off to the block's style plugin.
Return value
array: The array of rendered blocks, keyed on block UUID.
Overrides LayoutRendererStandard::renderBlocks
File
- core/
modules/ layout/ plugins/ renderers/ layout_renderer_editor.inc, line 140 - Class file to control the main Layout editor.
Class
Code
function renderBlocks() {
$this->rendered['blocks'] = array();
foreach ($this->prepared['blocks'] as $uuid => $block) {
$this->rendered['blocks'][$uuid] = $this->renderBlock($block);
}
return $this->rendered['blocks'];
}