PageAncestryResolver
readonly class \
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.
Internal
not part of the public TYPO3 Core API yet.
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Methods
- __construct() : mixed
- resolve() : PageAncestry
Methods
__construct()
public
__construct(PageAncestryRepository $pageAncestryRepository, RecordFactory $recordFactory, ConnectionPool $connectionPool, FrontendInterface $runtimeCache) : mixed
Parameters
- $pageAncestryRepository : PageAncestryRepository
- $recordFactory : RecordFactory
- $connectionPool : ConnectionPool
- $runtimeCache : FrontendInterface
resolve()
public
resolve(int|Page $page, int $workspaceId[, bool $includeDeleted = false ]) : PageAncestry
Parameters
- $page : int|Page
- $workspaceId : int
- $includeDeleted : bool = false