Review main Merged Breaking

75928[!!!][FEATURE] Introduce PSR-14 event for DatabaseRecordList

Benni Mack CR +2 V +2 Hard +242 −103 updated 10/02/22, 10:19

Commit message

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

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 13