1 layout_renderer_editor.inc | LayoutRendererEditor::renderTitleRegion($region_id) |
Render the Page Title region in the Layout Editor.
File
- core/
modules/ layout/ plugins/ renderers/ layout_renderer_editor.inc, line 86 - Class file to control the main Layout editor.
Class
Code
function renderTitleRegion($region_id) {
$region_buttons = $this->getRegionLinks($region_id);
$description = layout_get_title_description($this->layout);
$output = '<div class="layout-editor-block" id="layout-editor-title" data-region-name="' . $region_id . '">';
$output .= ' <div class="layout-editor-block-title clearfix">';
$output .= ' <span class="text">' . check_plain($this->layout_info['regions'][$region_id]) . '</span>';
$output .= ' <span class="description">' . $description . '</span>';
$output .= ' <span class="buttons">' . $region_buttons . '</span>';
$output .= ' </div>';
$output .= '</div>';
return $output;
}