source/Core/ViewHelper/JavaScriptRegistrator.php
public function addSnippet($script, $isDynamic = false)
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $suffix = $isDynamic ? '_dynamic' : '';
        $scriptsParameterName = static::SNIPPETS_PARAMETER_NAME . $suffix;
        $scripts = (array) $config->getGlobalParameter($scriptsParameterName);
        $script = trim($script);
        if (!in_array($script, $scripts)) {
            $scripts[] = $script;
        }
        $config->setGlobalParameter($scriptsParameterName, $scripts);
    }
public function addSnippet($script, $isDynamic = false)
    {
        $config = \OxidEsales\Eshop\Core\Registry::getConfig();
        $suffix = $isDynamic ? '_dynamic' : '';
        $scriptsParameterName = static::SNIPPETS_PARAMETER_NAME . $suffix;
        $scripts = (array) $config->getGlobalParameter($scriptsParameterName);
        $script = trim($script);
        if (!in_array($script, $scripts)) {
            $scripts[] = $script;
        }
        $config->setGlobalParameter($scriptsParameterName, $scripts);
    }
public function addSnippet ( $ script , $ isDynamic = false ) { $ config = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ suffix = $ isDynamic ? '_dynamic' : '' ; $ scriptsParameterName = static :: SNIPPETS_PARAMETER_NAME . $ suffix ; $ scripts = ( array ) $ config -> getGlobalParameter ( $ scriptsParameterName ) ; $ script = trim ( $ script ) ; if ( ! in_array ( $ script , $ scripts ) ) { $ scripts [ ] = $ script ; } $ config -> setGlobalParameter ( $ scriptsParameterName , $ scripts ) ; }
Register JavaScript code snippet for rendering.

@param string $script
@param bool   $isDynamic
Register JavaScript code snippet for rendering .