Skip to content

Kirby 5.0.4

$optionsApi->load()

Loads the API content from a remote URL or local file (or from cache)

$optionsApi->load(Kirby\Cms\ModelWithContent $model): array|null

Parameters

Name Type Default
$modelrequired Kirby\Cms\ModelWithContent no default value

Return types

arrayornull

This method modifies the existing $optionsapi object it is applied to and returns it again.

Parent class

Kirby\Option\OptionsApi