Skip to content

Kirby 3.5.7.1

$api->resolve()

Turns a Kirby object into an API model or collection representation

$api->resolve(mixed $object): Kirby\Api\Model|Kirby\Api\Collection

Parameters

Name Type Default
$object * mixed

Return type

Kirby\Api\Model|Kirby\Api\Collection

Exceptions

Type Description
Kirby\Exception\NotFoundException If $object cannot be resolved

Parent class

Kirby\Api\Api