Deprecation: #85556 - PageRepository->versioningWorkspaceId

See forge#85556


The public property TYPO3\CMS\Frontend\Page\PageRepository->versioningWorkspaceId has been marked as deprecated.


Accessing or setting the property directly will trigger a PHP E_USER_DEPRECATED error.

Affected Installations

TYPO3 installations with custom extensions calling this public property directly.


Use the Context API and its workspace aspect

GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('workspace', 'id', 0);

directly when reading the workspace ID, or instantiate a custom PageRepository with a custom context (see Context API docs) for custom usages.