Breaking: #101612 - LinkParameterProviderInterface changed

See forge#101612

Description

The PHP interface \TYPO3\CMS\Backend\Tree\View\LinkParameterProviderInterface has changed. The interface is used to generate URLs with query parameters for links within element browsers or link browsers in the TYPO3 backend.

The methods getScriptUrl() and isCurrentlySelectedItem() have been removed from the interface, as the implementing link browsers do not need this information anymore due to simplification in routing.

The method getUrlParameters() now has a native return type array, whereas previously this was only type-hinted.

Impact

When accessing implementing PHP objects, it should be noted that these methods do not exist anymore. When called this might result in fatal PHP errors.

When implementing the PHP interface, the implementing code will fail due to missing return types.

Affected installations

TYPO3 installations with custom implementations of this interface.

Migration

For extensions implementing the interface, the return type for getUrlParameters() can be added in order to be TYPO3 v12+ compatible. For v13-only compatibility, it is recommended to remove the superfluous methods.