Skip to content

Kirby 5.0.4

$api->files()

Returns the all readable files for the parent

$api->files(string $path): Kirby\Cms\Files

Parameters

Name Type Default Description
$pathrequired string no default value Path to file's parent model

Return type

Kirby\Cms\Files

This method modifies the existing $api object it is applied to and returns it again.

Exceptions

Type Description
Kirby\Exception\NotFoundException if the file cannot be found

Parent class

Kirby\Cms\Api