Skip to content

Kirby 5.0.4

$kirby->storage()

Returns the default storage instance for a given Model

$kirby->storage(Kirby\Cms\ModelWithContent $model): Kirby\Content\Storage

Parameters

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

Return type

Kirby\Content\Storage

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

Parent class

Kirby\Cms\App