ResourceURLGenerator
interface ResourceURLGenerator (View source)
Generate URLs for client-side assets and perform any preparation of those assets needed.
Methods
public
string
urlForResource(string|ModuleResource $resource)
Return the URL for a given resource within the project.
Details
string
urlForResource(string|ModuleResource $resource)
Return the URL for a given resource within the project.
As well as returning the URL, this method may also perform any changes needed to ensure that this URL will resolve, for example, by copying files to another location