Skip to content

Kirby 5.6.0

$pageUuid->model()

Tries to find the identifiable model in cache or index and returns the object

$pageUuid->model(bool $lazy = false): Kirby\Cms\Page|null

Parameters

Name Type Default Description
$lazy bool false If true, only lookup from cache

Return types

Kirby\Cms\Pageornull

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

Parent class

Kirby\Uuid\PageUuid inherited from Kirby\Uuid\Uuid