Skip to content

Kirby 5.0.1

$files->template()

Filter all files by the given template

$files->template(array|string|null $template): Kirby\Cms\Files

Parameters

Name Type Default
$template arrayorstringornull no default value

Return types

Kirby\Cms\Files

This method does not modify the existing $files object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Files