Deprecation: #100454 - Legacy tree implementations
See forge#100454
Description
Due to many refactorings in TYPO3's tree implementations in the past versions,
many implementations and functionality of the legacy rendering
\TYPO3\
is not needed anymore.
The following PHP classes are not in use anymore and have been marked as deprecated:
\TYPO3\CMS\ Backend\ Tree\ View\ Browse Tree View \TYPO3\CMS\ Backend\ Tree\ View\ Element Browser Page Tree View
The base class is still available, but discouraged to be used or extended, even though TYPO3 still uses this in a few places.
The following properties and methods within the base class
Abstract have either been marked as deprecated or
declared as internal:
AbstractTree View->this Script AbstractTree View->BE_ USER AbstractTree View->clause AbstractTree View->title AbstractTree View->table AbstractTree View->parent Field AbstractTree View->order By Fields AbstractTree View->field Array AbstractTree View->default List AbstractTree View->determine Script Url () AbstractTree View->get This Script () AbstractTree View->PM_ ATag Wrap () AbstractTree View->add Tag Attributes () AbstractTree View->get Root Icon () AbstractTree View->get Icon () AbstractTree View->get Root Record () AbstractTree View->get Title Str () AbstractTree View->get Title Attrib ()
Impact
Instantiating the deprecated classes or calling the deprecated methods will
trigger a PHP deprecation warning, except for
Abstract, which is still used internally by
deprecated code.
The Extension Scanner will find those usages and additionally also reports
usages of the corresponding public properties of the
Abstract
class.
Affected installations
TYPO3 installations with custom extensions using this functionality. This is usually the case for old installations from TYPO3 v6 or TYPO3 v4 times.
Migration
It is recommended to avoid generating the markup directly in PHP. Instead use one of various other tree functionalities (for example, see PageTree implementations) in PHP and render trees via web components or Fluid.