$api->resolve()
Turns a Kirby object into an API model or collection representation
$api->resolve($object): Kirby\Api\Model|Kirby\Api\Collection
Parameters
| Name | Type | Default |
|---|---|---|
| $objectrequired | mixed |
no default value |
Return types
Kirby\Api\ModelorKirby\Api\Collection
This method modifies the existing $api object it is applied to and returns it again.
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\NotFoundException |
If $object cannot be resolved |
Parent class
Kirby\Cms\Api
inherited from Kirby\Api\Api