Deprecation: #95037 - rootUid related setting of trees¶
See forge#95037
Description¶
The setting rootUid
used in FormEngine's treeConfig
is superseded by
startingPoints
and has been marked as deprecated.
In TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeDataProvider
the
following methods have been marked as deprecated:
setRootUid()
getRootUid()
Impact¶
Using treeConfig/rootUid
in TCA will trigger a TCA migration to
treeConfig/startingPoints
and raise a PHP E_USER_DEPRECATED
error.
The same applies to the according page TSconfig option.
The extension scanner detects any call to setRootUid()
or getRootUid()
as weak match.
Affected Installations¶
All extensions defining rootUid
in their TCA
or TSconfig
are affected.
Furthermore all extensions directly calling one of the mentioned methods in
TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeDataProvider
.
Migration¶
The setting treeConfig/rootUid
can be migrated to treeConfig/startingPoints
passing the value as string, since treeConfig/startingPoints
takes a
comma-separated value. The methods setRootUid()
and getRootUid()
can be replaced by their successors setStartingPoints()
and
getStartingPoints()
.