Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added description for 'preg_split' twig function #198

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pages/01.gantry5/05.advanced/09.twig-filters/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. | |