• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Where do I get the second and third parameters for this function?


Well-known member
I can't figure out where to get the last 2 parameters...
public static function pageMatchesCriteria($criteria, $matchOnEmpty = false, array $params, array $containerData)

$params is just extra data that may be useful to the matching process, and $containerData is data used in the template rendering process. You can set the extraData bit during template_post_render.