protected function convertHierachicalResources(&$resources)
    {
        foreach ($resources as &$resource) {
            if (gettype($resource)=="string") {
                $resource = $this->getAssetManager()->getAssetUrl($resource);
            } else if (gettype($resource)=="array") {
                $this->convertHierachicalResources($resource);
            }
        }
        return $resources;
    }
protected function convertHierachicalResources(&$resources)
    {
        foreach ($resources as &$resource) {
            if (gettype($resource)=="string") {
                $resource = $this->getAssetManager()->getAssetUrl($resource);
            } else if (gettype($resource)=="array") {
                $this->convertHierachicalResources($resource);
            }
        }
        return $resources;
    }
protected function convertHierachicalResources ( & $ resources ) { foreach ( $ resources as & $ resource ) { if ( gettype ( $ resource ) == "string" ) { $ resource = $ this -> getAssetManager ( ) -> getAssetUrl ( $ resource ) ; } else if ( gettype ( $ resource ) == "array" ) { $ this -> convertHierachicalResources ( $ resource ) ; } } return $ resources ; }
The resources settings from short form will be converted to long form
which include full url to each resource

@param array $resources Resources

@return array $resource Resource settings after converted
The resources settings from short form will be converted to long form which include full url to each resource