vendor/codezeen/yii2-tinymce/TinyMceCompressorAction.php
/**
     * Returns TinyMCE script url
     * @static
     *
     * @param $route    string route to compressor action
     * @param $settings array name/value array with settings for the script.
     *
     * @return string url for script
     */
Returns TinyMCE script url
@static

@param $route    string route to compressor action
@param $settings array name/value array with settings for the script.

@return string url for script
Returns TinyMCE script url @static @param $route string route to compressor action @param $settings array name / value array with settings for the script . @return string url for script
public static function scripUrl($route, $settings)
    {
        $settings = array_merge(self::$defaultSettings, $settings);
        $urlParams = array();
        $urlParams['js'] = '1';
        if (isset($settings["plugins"])) {
            $urlParams['plugins'] = (is_array($settings["plugins"]) ? implode(
                ',',
                $settings["plugins"]
            ) : $settings["plugins"]);
        }
        if (isset($settings["themes"])) {
            $urlParams['themes'] = (is_array($settings["themes"]) ? implode(
                ',',
                $settings["themes"]
            ) : $settings["themes"]);
        }
        if (isset($settings["languages"])) {
            $urlParams['languages'] = (is_array($settings["languages"]) ? implode(
                ',',
                $settings["languages"]
            ) : $settings["languages"]);
        }
        if (isset($settings["disk_cache"])) {
            $urlParams['diskcache'] = ($settings["disk_cache"] === true ? "true" : "false");
        }
        if (isset($settings["files"])) {
            $urlParams['files'] = (is_array($settings["files"]) ? implode(
                ',',
                $settings["files"]
            ) : $settings["files"]);
        }
        if (isset($settings["source"])) {
            $urlParams['src'] = ($settings["source"] === true ? "true" : "false");
        }
        return Url::to([$route] + $urlParams);
    }
public static function scripUrl ( $ route , $ settings ) { $ settings = array_merge ( self :: $ defaultSettings , $ settings ) ; $ urlParams = array ( ) ; $ urlParams [ 'js' ] = '1' ; if ( isset ( $ settings [ " plugins " ] ) ) { $ urlParams [ 'plugins' ] = ( is_array ( $ settings [ " plugins " ] ) ? implode ( ',' , $ settings [ " plugins " ] ) : $ settings [ " plugins " ] ) ; } if ( isset ( $ settings [ " themes " ] ) ) { $ urlParams [ 'themes' ] = ( is_array ( $ settings [ " themes " ] ) ? implode ( ',' , $ settings [ " themes " ] ) : $ settings [ " themes " ] ) ; } if ( isset ( $ settings [ " languages " ] ) ) { $ urlParams [ 'languages' ] = ( is_array ( $ settings [ " languages " ] ) ? implode ( ',' , $ settings [ " languages " ] ) : $ settings [ " languages " ] ) ; } if ( isset ( $ settings [ " disk_cache " ] ) ) { $ urlParams [ 'diskcache' ] = ( $ settings [ " disk_cache " ] === true ? " true " : " false " ) ; } if ( isset ( $ settings [ " files " ] ) ) { $ urlParams [ 'files' ] = ( is_array ( $ settings [ " files " ] ) ? implode ( ',' , $ settings [ " files " ] ) : $ settings [ " files " ] ) ; } if ( isset ( $ settings [ " source " ] ) ) { $ urlParams [ 'src' ] = ( $ settings [ " source " ] === true ? " true " : " false " ) ; } return Url :: to ( [ $ route ] + $ urlParams ) ; }
Returns TinyMCE script url
 @static
Returns TinyMCE script url @static
// Add plugins // Add themes // Add languages // Add disk_cache // Add any explicitly specified files if the default settings have been overriden by the tag ones /*
         * Specifying tag files will override (rather than merge with) any site-specific ones set in the
         * TinyMCE_Compressor object creation.  Note that since the parameter parser limits content to alphanumeric
         * only base filenames can be specified.  The file extension is assumed to be ".js" and the directory is
         * the TinyMCE root directory.  A typical use of this is to include a script which initiates the TinyMCE object.
         */ // Add src flag