1 layout_renderer_editor.inc LayoutRendererEditor::addMeta()

Attach out-of-band page metadata (e.g., CSS and JS).

This must be done before render, because layouts-within-layouts must have their CSS added in the right order: inner content before outer content.

Overrides LayoutRendererStandard::addMeta

File

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

Class

LayoutRendererEditor

Code

function addMeta() {
  parent::addMeta();
  backdrop_add_library('system', 'ui.sortable');
  backdrop_add_js(backdrop_get_path('module', 'layout') . '/js/layout.admin.js');
  backdrop_add_css(backdrop_get_path('module', 'layout') . '/css/layout.admin.css');
}