Skip to content
Snippets Groups Projects
Commit 42bb0f18 authored by Benni Mack's avatar Benni Mack
Browse files

[!!!][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: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent eea87a05
Branches
Tags
Showing
with 242 additions and 103 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment