1 layout_renderer_editor.inc LayoutRendererEditor::__construct(Layout $layout, array $renderer_plugin)

Construct the object that will be used to render the layout.

Parameters

Layout $layout: The layout object to be rendered.

array $plugin: The definition of the renderer plugin.

Throws

LayoutMissingException

Overrides LayoutRendererStandard::__construct

File

core/modules/layout/plugins/renderers/layout_renderer_editor.inc, line 11
Class file to control the main Layout editor.

Class

LayoutRendererEditor

Code

function __construct(Layout $layout, array $renderer_plugin) {
  parent::__construct($layout, $renderer_plugin);

  // Set the page title region if not already.
  if (!isset($this->layout_info['regions']['title'])) {
    $this->layout_info['regions']['title'] = t('Page title');
  }
  $this->admin = TRUE;

}