From 52200c57f804f63525c46ef5e2376e01d5bbddf6 Mon Sep 17 00:00:00 2001 From: thex Date: Wed, 8 Jan 2020 11:30:41 +0100 Subject: [PATCH] added description for 'preg_split' twig function --- pages/01.gantry5/05.advanced/09.twig-filters/docs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/01.gantry5/05.advanced/09.twig-filters/docs.md b/pages/01.gantry5/05.advanced/09.twig-filters/docs.md index 474169c..6d95197 100644 --- a/pages/01.gantry5/05.advanced/09.twig-filters/docs.md +++ b/pages/01.gantry5/05.advanced/09.twig-filters/docs.md @@ -153,6 +153,7 @@ Just like with Twig Filters - Gantry 5 also has a set of custom Twig functions t | colorContrast | Given a color, it returns a fitting light or dark color for better contrast. | | | get_cookie | Gets a cookie from the current request. | | | preg_match | Searches subject for a match to the regular expression given in pattern. | `pattern` `subject` | +| preg_split | Splits subject by a regular expression given in pattern and a limit. | `pattern` `subject` `limit` | | url | Takes a stream and converts it to a real URL. | | | json_decode | Basically the same as `json_decode()` in PHP. | `assoc` `depth` `options` | | imagesize | Grabs the image dimensions and outputs it in HTML tag format. | |