$api->sectionApi()
$api->sectionApi(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 section type cannot be found or the section cannot be loaded |