1.20.x 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
- modules/
layout/ plugins/ renderers/ layout_renderer_editor.inc, line 26 - Class file to control the main Layout editor.
Class
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');
}