Skip to content

Miscellaneous

setFilterChain()

setFilterChain() — returns any

Use this function if you need a more low level way of setting the entire filter chain for a controller.

NameTypeRequiredDefaultDescription
chainarrayyesAn array of structs, each of which represent an argumentCollection that get passed to the filters function. This should represent the entire filter chain that you want to use for this controller.
// Set filter chain directly in an array
		setFilterChain([
			{through="restrictAccess"},
			{through="isLoggedIn,checkIPAddress", except="home,login"},
			{type="after", through="logConversion", only="thankYou"}
		]);