PageAncestryResolver

readonly class \TYPO3\CMS\Core\Domain\PageAncestryResolver

Resolves the ancestry of a page in a workspace with one database query, as the backend sees it: pages deleted in the workspace are part of the ancestry, neither language overlays nor mount points are applied, and a broken page tree results in an incomplete ancestry instead of an exception.

Attributes

#[Autoconfigure]
$public: true

Table of Contents

Methods

__construct()  : mixed
resolve()  : PageAncestry

Methods

resolve()

public resolve(int|Page $page, int $workspaceId[, bool $includeDeleted = false ]) : PageAncestry

Parameters

$page : int|Page
$workspaceId : int
$includeDeleted : bool = false

Return values

PageAncestry
On this page