[!!!][FEATURE] Introduce PSR-14 event for DatabaseRecordList
This change introduces a new PSR-14 event "ModifyDatabaseQueryForRecordListingEvent" which serves as a successor for various hooks: * $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list_extra.inc']['getTable'] * $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList']['modifyQuery'] * $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList']['makeSearchStringConstraints'] The interface "RecordListGetTableHookInterface" is not in use anymore and is marked as deprecated. In addition, several methods in DatabaseRecordList now have a different method signature: * DatabaseRecordList->getTable() without $pageId and $additionalConstraints * DatabaseRecordList->getQueryBuilder() without the "pageId" argument * DatabaseRecordList->makeSearchString() now marked as protected Resolves: #98490 Releases: main Change-Id: Ied0b84bdddf3298050e1f6633da472e5f194a3d4 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75928 Tested-by:core-ci <typo3@b13.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/backend/Classes/Controller/RecordListController.php 4 additions, 3 deletions...ysext/backend/Classes/Controller/RecordListController.php
- typo3/sysext/backend/Classes/Controller/RecordListDownloadController.php 0 additions, 1 deletion...ckend/Classes/Controller/RecordListDownloadController.php
- typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php 25 additions, 89 deletions.../sysext/backend/Classes/RecordList/DatabaseRecordList.php
- typo3/sysext/backend/Classes/RecordList/DownloadRecordList.php 4 additions, 6 deletions.../sysext/backend/Classes/RecordList/DownloadRecordList.php
- typo3/sysext/backend/Classes/RecordList/RecordListGetTableHookInterface.php 4 additions, 0 deletions...nd/Classes/RecordList/RecordListGetTableHookInterface.php
- typo3/sysext/backend/Classes/View/Event/ModifyDatabaseQueryForRecordListingEvent.php 79 additions, 0 deletions...s/View/Event/ModifyDatabaseQueryForRecordListingEvent.php
- typo3/sysext/backend/Tests/Functional/RecordList/DownloadRecordListTest.php 4 additions, 4 deletions...nd/Tests/Functional/RecordList/DownloadRecordListTest.php
- typo3/sysext/core/Documentation/Changelog/12.0/Breaking-98490-VariousHooksAndMethodsChangedInDatabaseRecordList.rst 53 additions, 0 deletions...490-VariousHooksAndMethodsChangedInDatabaseRecordList.rst
- typo3/sysext/core/Documentation/Changelog/12.0/Feature-98490-PSR-14EventToAlterTheRecordsRenderedInRecordListings.rst 26 additions, 0 deletions...-PSR-14EventToAlterTheRecordsRenderedInRecordListings.rst
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayDimensionMatcher.php 18 additions, 0 deletions...figuration/ExtensionScanner/Php/ArrayDimensionMatcher.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php 5 additions, 0 deletions...l/Configuration/ExtensionScanner/Php/ClassNameMatcher.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodArgumentDroppedMatcher.php 12 additions, 0 deletions...ion/ExtensionScanner/Php/MethodArgumentDroppedMatcher.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php 8 additions, 0 deletions.../Configuration/ExtensionScanner/Php/MethodCallMatcher.php
Please register or sign in to comment