[!!!][FEATURE] Add UriBuilder->buildUriFromRequest
This change adds a new method buildUriFromRequest inside TYPO3's Backend UriBuilder in order to generate links to the current (or any) request with additional parameters. This is quite helpful to link to the same module /route when a request is given, thus reducing code duplication and unifies link generation. In addition, the determineScriptUrl() and getScriptUrl() methods inside LinkBrowsers and ElementBrowsers are removed, and have been removed from the LinkParameterProviderInterface as well. Resolves: #101612 Releases: main Change-Id: Ibaa2d2872178374e4553cf5899ee8ae19168480b Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80433 Reviewed-by:Stefan B�rk <stefan@buerk.tech> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Stefan B�rk <stefan@buerk.tech> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Oliver Klee <typo3-coding@oliverklee.de> Tested-by:
Oliver Klee <typo3-coding@oliverklee.de>
Showing
- typo3/sysext/backend/Classes/Clipboard/Clipboard.php 2 additions, 2 deletionstypo3/sysext/backend/Classes/Clipboard/Clipboard.php
- typo3/sysext/backend/Classes/Controller/AbstractLinkBrowserController.php 3 additions, 28 deletions...kend/Classes/Controller/AbstractLinkBrowserController.php
- typo3/sysext/backend/Classes/Controller/RecordListController.php 1 addition, 1 deletion...ysext/backend/Classes/Controller/RecordListController.php
- typo3/sysext/backend/Classes/ElementBrowser/AbstractElementBrowser.php 0 additions, 18 deletions...backend/Classes/ElementBrowser/AbstractElementBrowser.php
- typo3/sysext/backend/Classes/ElementBrowser/DatabaseBrowser.php 1 addition, 20 deletions...sysext/backend/Classes/ElementBrowser/DatabaseBrowser.php
- typo3/sysext/backend/Classes/LinkHandler/PageLinkHandler.php 1 addition, 22 deletionstypo3/sysext/backend/Classes/LinkHandler/PageLinkHandler.php
- typo3/sysext/backend/Classes/LinkHandler/RecordLinkHandler.php 0 additions, 19 deletions.../sysext/backend/Classes/LinkHandler/RecordLinkHandler.php
- typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php 2 additions, 2 deletions.../sysext/backend/Classes/RecordList/DatabaseRecordList.php
- typo3/sysext/backend/Classes/Routing/UriBuilder.php 15 additions, 0 deletionstypo3/sysext/backend/Classes/Routing/UriBuilder.php
- typo3/sysext/backend/Classes/Tree/View/LinkParameterProviderInterface.php 3 additions, 20 deletions...kend/Classes/Tree/View/LinkParameterProviderInterface.php
- typo3/sysext/backend/Classes/View/FolderUtilityRenderer.php 7 additions, 10 deletionstypo3/sysext/backend/Classes/View/FolderUtilityRenderer.php
- typo3/sysext/backend/Tests/Functional/Routing/UriBuilderTest.php 47 additions, 2 deletions...ysext/backend/Tests/Functional/Routing/UriBuilderTest.php
- typo3/sysext/core/Documentation/Changelog/13.0/Breaking-101612-LinkParameterProviderInterfaceChanged.rst 49 additions, 0 deletions...Breaking-101612-LinkParameterProviderInterfaceChanged.rst
- typo3/sysext/core/Documentation/Changelog/13.0/Feature-101612-UriBuilder-buildUriFromRequest.rst 28 additions, 0 deletions...og/13.0/Feature-101612-UriBuilder-buildUriFromRequest.rst
- typo3/sysext/filelist/Classes/ElementBrowser/AbstractResourceBrowser.php 8 additions, 28 deletions...lelist/Classes/ElementBrowser/AbstractResourceBrowser.php
- typo3/sysext/filelist/Classes/ElementBrowser/CreateFolderBrowser.php 1 addition, 1 deletion...t/filelist/Classes/ElementBrowser/CreateFolderBrowser.php
- typo3/sysext/filelist/Classes/ElementBrowser/FileBrowser.php 2 additions, 2 deletionstypo3/sysext/filelist/Classes/ElementBrowser/FileBrowser.php
- typo3/sysext/filelist/Classes/ElementBrowser/FolderBrowser.php 1 addition, 1 deletion.../sysext/filelist/Classes/ElementBrowser/FolderBrowser.php
- typo3/sysext/filelist/Classes/FileList.php 1 addition, 1 deletiontypo3/sysext/filelist/Classes/FileList.php
- typo3/sysext/filelist/Classes/LinkHandler/AbstractResourceLinkHandler.php 6 additions, 27 deletions...elist/Classes/LinkHandler/AbstractResourceLinkHandler.php
Please register or sign in to comment