backend_assets

Allows adding custom content inside the backend’s HEAD tag.

Teamwork

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

{$backend_assets}
Custom HTML code to be added at the end of the closing HEAD.
Teamwork

Plugin code example

PHP

public function backendAssets()
{
    // Add plugin's custom CSS and JavaScript files
    // to be automatically included in the <HEAD> tag.
    $this->addCss('css/myplugin.css');
    $this->addJs('js/myplugin.js');
    
    // Return an arbitrary HTML string to be added at the end of the <HEAD> tag.
    return '<!-- more  -->';
}