[BUGFIX] Deprecate broken buildQueryParameters hook 12/55512/7
authorFrank Naegler <frank.naegler@typo3.org>
Wed, 31 Jan 2018 15:09:33 +0000 (16:09 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 8 Feb 2018 08:37:39 +0000 (09:37 +0100)
commit4f17dd08dc4da005922b576796c43c1a5be88945
treea868eb62f05b10b423523f827fccf6111110b0de
parent629d6fde47380a29f39e36f54aff9999629ceed8
[BUGFIX] Deprecate broken buildQueryParameters hook

This change deprecates the "buildQueryParameters" hook in three
different classes and adds two new hooks in DatabaseRecordList
and PageLayoutView to modify the current query.

With #82334 a cleanup of AbstractRecordList has introduced
the same hook into multiple classes, which breaks existing
hooks, because of the sixth parameter which can be one of three
different classes without a common parent class or interface.
This makes it impossible to use a type hint in the hook class.

Another problem is: an extension which implements the hook
for the list module and uses a type hint will break the page module.

The same query manipulation can be achieved with the two
new hooks, which have a separate identifier.

Resolves: #83740
Related: #82334
Releases: master
Change-Id: Ie3b2c8082f86c6632400a8194dca4ca244b428bc
Reviewed-on: https://review.typo3.org/55512
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/core/Documentation/Changelog/master/Deprecation-83740-CleanupOfAbstractRecordListBreaksHook.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-83740-CleanupOfAbstractRecordListBreaksHook.rst [new file with mode: 0644]
typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayDimensionMatcher.php
typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php