Add a filter to the allowed filters array.
public static addFilter ( string $key, string $name, array $wheres, string $group = '', string $setKey = 'filter' ) | ||
$key | string | The key name of the filter. Appears in the query string, should be url-friendly. |
$name | string | The display name of the filter. Usually appears as an option in the UI. |
$wheres | array | The where array query to execute for the filter. Uses |
$group | string | (optional) The nav module will group together any items with the same group name. |
$setKey | string | The key name of the filter set. |