public function getAsURL(string
$filename,
string
$hash,
[string|null
$variant = NULL,
[boolean
$grant = true]] )
Parameters
$filename
—
string
Filename (not including assets)
$hash
—
string
sha1 hash of the file content. If a variant is requested, this is the hash of the file before it was modified.
$variant
—
object
Optional variant string for this file
$grant
—
boolean
Ensures that the url for any protected assets is granted for the current user. If set to true, and the file is currently in protected mode, the asset store will ensure the returned URL is accessible for the duration of the current session / user. This will have no effect if the file is in published mode. This will not grant access to users other than the owner of the current session.