src/DebugBar/JavascriptRenderer.php
public function addInlineAssets($inlineCss, $inlineJs, $inlineHead)
    {
        $this->additionalAssets[] = array(
            'inline_css' => (array) $inlineCss,
            'inline_js' => (array) $inlineJs,
            'inline_head' => (array) $inlineHead
        );
        return $this;
    }
public function addInlineAssets($inlineCss, $inlineJs, $inlineHead)
    {
        $this->additionalAssets[] = array(
            'inline_css' => (array) $inlineCss,
            'inline_js' => (array) $inlineJs,
            'inline_head' => (array) $inlineHead
        );
        return $this;
    }
public function addInlineAssets ( $ inlineCss , $ inlineJs , $ inlineHead ) { $ this -> additionalAssets [ ] = array ( 'inline_css' => ( array ) $ inlineCss , 'inline_js' => ( array ) $ inlineJs , 'inline_head' => ( array ) $ inlineHead ) ; return $ this ; }
Add inline assets to render inline in the head.  Ideally, you should store static assets in
files that you add with the addAssets function.  However, adding inline assets is useful when
integrating with 3rd-party libraries that require static assets that are only available in an
inline format.

The inline content arrays require special string array keys:  they are used to deduplicate
content.  This is particularly useful if multiple instances of the same asset end up being
added.  Inline assets from all collectors are merged together into the same array, so these
content IDs effectively deduplicate the inline assets.

@param array $inlineCss  An array map of content ID to inline CSS content (not including <style> tag)
@param array $inlineJs   An array map of content ID to inline JS content (not including <script> tag)
@param array $inlineHead An array map of content ID to arbitrary inline HTML content (typically
<style>/<script> tags); it must be embedded within the <head> element
@return $this
Add inline assets to render inline in the head . Ideally you should store static assets in files that you add with the addAssets function . However adding inline assets is useful when integrating with 3rd - party libraries that require static assets that are only available in an inline format .