src/Forms/HTMLEditor/TinyMCECombinedGenerator.php
protected function resolveRelativeResource($base, $resource)
    {
        // Return resource path based on relative resource path
        foreach (['', '.min.js', '.js'] as $ext) {
            // Map resource
            if ($base instanceof ModuleResource) {
                $next = $base->getRelativeResource($resource . $ext);
            } else {
                $next = rtrim($base, '/') . '/' . $resource . $ext;
            }
            // Ensure resource exists
            if ($this->resourceExists($next)) {
                return $next;
            }
        }
        return null;
    }
protected function resolveRelativeResource($base, $resource)
    {
        // Return resource path based on relative resource path
        foreach (['', '.min.js', '.js'] as $ext) {
            // Map resource
            if ($base instanceof ModuleResource) {
                $next = $base->getRelativeResource($resource . $ext);
            } else {
                $next = rtrim($base, '/') . '/' . $resource . $ext;
            }
            // Ensure resource exists
            if ($this->resourceExists($next)) {
                return $next;
            }
        }
        return null;
    }
protected function resolveRelativeResource ( $ base , $ resource ) { // Return resource path based on relative resource path foreach ( [ '' , '.min.js' , '.js' ] as $ ext ) { // Map resource if ( $ base instanceof ModuleResource ) { $ next = $ base -> getRelativeResource ( $ resource . $ ext ) ; } else { $ next = rtrim ( $ base , '/' ) . '/' . $ resource . $ ext ; } // Ensure resource exists if ( $ this -> resourceExists ( $ next ) ) { return $ next ; } } return null ; }
Get relative resource for a given base and string

@param ModuleResource|string $base
@param string $resource
@return ModuleResource|string
Get relative resource for a given base and string