$pages->template()
Filter all pages by the given template
$pages->template(array|string|null $templates): Kirby\Cms\Pages
Parameters
Name | Type | Default |
---|---|---|
$templates | array orstring ornull |
no default value |
Return types
This method does not modify the existing $pages
object but returns a new object with the changes applied. Learn more →