$pagePickerDialogController->root()
Calculates the top-most model (page or site) that can be accessed when navigating through pages.
$pagePickerDialogController->root() 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.
$pagePickerDialogController->root(): Page|Site
Return types
Kirby\Cms\PageorKirby\Cms\Site