Redaxscript\Head\Script::concat PHP Method

concat() public method

concat the script
Since: 3.0.0
public concat ( array $optionArray = [] ) : Script
$optionArray array
return Script
    public function concat($optionArray = [])
    {
        $optionArray = array_merge(self::$_optionArray, $optionArray);
        $loader = new Assetic\Loader(Registry::getInstance());
        $loader->init(self::$_collectionArray[self::$_namespace])->concat($optionArray);
        /* update collection */
        self::$_collectionArray[self::$_namespace] = $loader->getCollectionArray();
        return $this;
    }