$api->model()
Returns an API model instance by name
$api->model(string $name = null, mixed $object = null): Kirby\Api\ModelParameters
| Name | Type | Default | 
|---|---|---|
| $name | string | null | 
| $object | mixed | null | 
Return type
Exceptions
| Type | Description | 
|---|---|
| Kirby\Exception\NotFoundException | If no model for $nameexists | 
Parent class
  Kirby\Cms\Api    inherited from Kirby\Api\Api