1 layout_renderer_flexible.inc | LayoutRendererFlexible::renderEditor() |
Perform display-level render operations.
This method renders the flexible editor rows, passes this to the flexible template's theme callback, and returns the rendered HTML.
Return value
string: The HTML string representing the entire rendered, themed template editor.
File
- core/
modules/ layout/ plugins/ renderers/ layout_renderer_flexible.inc, line 123
Class
- LayoutRendererFlexible
- The renderer for the flexible template editor.
Code
function renderEditor() {
$this->renderRowButtons();
module_load_include('inc', 'layout', 'layout.theme');
if (empty($this->layout_template_info['template'])) {
$theme = 'layout__' . $this->layout->layout_template;
}
else {
$theme = str_replace('-', '_', $this->layout_template_info['template']);
}
$this->rendered_editor = theme($theme, array('content' => array(), 'settings' => array(), 'layout' => $this->layout, 'layout_info' => $this->layout_template_info, 'renderer' => $this, 'admin' => $this->admin));
return $this->prefix . $this->rendered_editor . $this->suffix;
}