$pages->template()
Filter all pages by the given template
$pages->template(string|list|null $templates): Pages
Parameters
| Name | Type | Default |
|---|---|---|
| $templates | stringorlist<string>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 →