Skip to content

Kirby 5.0.4

$pageTree->parents()

Returns the UUIDs/ids for all parents of the page

$pageTree->parents(string|null $page = null, bool $includeSite = false): array

Parameters

Name Type Default
$page stringornull null
$includeSite bool false

Return type

array

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

Parent class

Kirby\Panel\Controller\PageTree