Breaking: #98490 - Various hooks and methods changed in DatabaseRecordList
See forge#98490
Description
The following hooks have been removed
$GLOBALS
['TYPO3_ CONF_ VARS'] ['SC_ OPTIONS'] ['typo3/ class. db_ list_ extra. inc'] ['get Table'] $GLOBALS
['TYPO3_ CONF_ VARS'] ['SC_ OPTIONS'] ['TYPO3\ CMS\ Recordlist\ Record List\ Database Record List'] ['modify Query'] $GLOBALS
['TYPO3_ CONF_ VARS'] ['SC_ OPTIONS'] ['TYPO3\ CMS\ Recordlist\ Record List\ Database Record List'] ['make Search String Constraints']
They were mainly used within the list module / record listing or the Element Browser to modify the database query altering the result set of records rendered.
Along with the hooks, various method signatures within
Database
have been changed.
Database
has the argumentsRecord List->get Query Builder () $page
andId $additional
removedConstraints Database
only uses one argument nowRecord List->get Table () Database
is now marked as protectedRecord List->make Search String ()
Impact
Extensions adding implementations for these hooks have no effect anymore.
Extensions making use of calling the PHP methods directly will result in a fatal PHP error.
Affected installations
TYPO3 installations with third-party extensions modifying the record list via the hooks above.
Migration
Use the new PSR-14 event
Modify
which serves at the very end to alter the actual QueryBuilder object to modify
the database query before it is executed.