mirror of
https://github.com/getgrav/grav.git
synced 2026-02-21 05:58:01 +01:00
Expose parse_url via parseurl() Twig function
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
1. [](#new)
|
||||
* Added `|replace_last(search, replace)` filter
|
||||
* Added `urlparse` Twig function to expose PHP's `url_parse` function
|
||||
2. [](#improved)
|
||||
* Added multi-language support for page routes in `Utils::url()`
|
||||
* Set default maximum length for text fields
|
||||
|
||||
@@ -195,6 +195,7 @@ class GravExtension extends AbstractExtension implements GlobalsInterface
|
||||
new TwigFunction('gist', [$this, 'gistFunc']),
|
||||
new TwigFunction('nonce_field', [$this, 'nonceFieldFunc']),
|
||||
new TwigFunction('pathinfo', 'pathinfo'),
|
||||
new TwigFunction('parseurl', 'parse_url'),
|
||||
new TwigFunction('random_string', [$this, 'randomStringFunc']),
|
||||
new TwigFunction('repeat', [$this, 'repeatFunc']),
|
||||
new TwigFunction('regex_replace', [$this, 'regexReplace']),
|
||||
|
||||
Reference in New Issue
Block a user