Skip to content

Kirby 4.4.1

$api->fieldApi()

$api->fieldApi(Kirby\Cms\ModelWithContent $model, string $name, ?string $path = null): mixed|null

Parameters

Name Type Default
$model * Kirby\Cms\ModelWithContent
$name * string
$path string|null null

Return type

mixed|null

Exceptions

Type Description
Kirby\Exception\NotFoundException if the field type cannot be found or the field cannot be loaded

Parent class

Kirby\Cms\Api