Skip to content

Kirby 6.0.0

$modelPickerDialogController->find()

Finds a model by its ID

$modelPickerDialogController->find() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

$modelPickerDialogController->find(string $id): ModelWithContent|null

Parameters

Name Type Default
$idrequired string no default value

Return types

Kirby\Cms\ModelWithContentornull

Parent class

Kirby\Panel\Controller\Dialog\ModelPickerDialogController