url_query_string
Retrieves a query string parameter.
Example
1
{{ 'param' | url_query_string }} => value
Input
Type | Parameter | Description | Required |
---|---|---|---|
string | paramName | The name of the parameter to retrieve. Comes before the | sign. | Required |
mixed | defaultValue | The default value to return if the parameter is not found |
Output
Type | Description |
---|---|
mixed | The value of the parameter or the default value if not found |