$files->template()
Filter all files by the given template
$files->template(string|list|null $template): Files
Parameters
| Name | Type | Default |
|---|---|---|
| $template | stringorlist<string>ornull |
no default value |
Return types
This method does not modify the existing $files object but returns a new object with the changes applied. Learn more →