backend_assets

Adds custom content to backend layout HEAD section.

Contacts

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

{$backend_assets.%plugin_id%}

Custom HTML code. Instead of returning a value, a plugin may call system methods to include custom CSS and JavaScript files in backend HEAD section.

Contacts

Plugin code example

PHP

public function backendAssets()
{
    $this->addCss('css/myplugin.css');
    $this->addJs('js/myplugin.js');
}