src/Cloudinary.php
public static function chain_transformations($options, $transformations)
    {
        $transformations = \Cloudinary::build_array($transformations);
        // preserve url options
        $url_options = self::array_subset($options, self::$URL_KEYS);
        array_unshift($transformations, $options);
        $url_options["transformation"] = $transformations;
        return $url_options;
    }
public static function chain_transformations($options, $transformations)
    {
        $transformations = \Cloudinary::build_array($transformations);
        // preserve url options
        $url_options = self::array_subset($options, self::$URL_KEYS);
        array_unshift($transformations, $options);
        $url_options["transformation"] = $transformations;
        return $url_options;
    }
public static function chain_transformations ( $ options , $ transformations ) { $ transformations = \ Cloudinary :: build_array ( $ transformations ) ; // preserve url options $ url_options = self :: array_subset ( $ options , self :: $ URL_KEYS ) ; array_unshift ( $ transformations , $ options ) ; $ url_options [ "transformation" ] = $ transformations ; return $ url_options ; }
Helper function, allows chaining transformations to the end of transformations list

The result of this function is an updated $options parameter

@param array     $options         Original options
@param array     $transformations Transformations to chain at the end

@return array Resulting options
Helper function allows chaining transformations to the end of transformations list