QueryString

Registers a global twig function to get the query string of the current request and update or add multiple parameters.

Namespace

IO\Extensions\Functions

Methods
public construct()
public getFunctions():array

Return all available twig functions to be registered globally.

public getQueryString($params = []):string

Get the current query string from the URL.

Parameters

Type

Name

Description

array

$params

An associative array of parameter keys and values to replace or add to the query string.