Url
class Url extends BaseFilter
Url replicates Gryphon's original URL filter, providing absolute urls regardless of leading slash.
Please note this behavior is different from the built in
url()
function which will not automatically inject
a leading slash.
{{ 'foo/bar'|url({'a': 1}) }} becomes /foo/bar?a=1
Methods
string
getFilterName()
Return the filter name
string
handle(string $string, array $params = [])
Handle filter response
Details
in BaseFilter at line 13
__construct()
in BaseFilter at line 22
getFilterOptions()
in BaseFilter at line 31
object
getDI()
Return default dependency injector
at line 25
string
getFilterName()
Return the filter name
at line 36
string
handle(string $string, array $params = [])
Handle filter response