[FEATURE] Cleanup buildQueryParameters hook
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-81651-QueryBuilderObjectAsArgumentInListModuleHook.rst
1 .. include:: ../../Includes.txt
2
3 ======================================================================
4 Feature: #81651 - Query builder object as argument in list module hook
5 ======================================================================
6
7 See :issue:`81651`
8
9 Description
10 ===========
11
12 A new parameter :php:`$queryBuilder` has been added to
13 :php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][DatabaseRecordList::class]['buildQueryParameters']` hook.
14 The QueryBuilder object can be used to modify the main list module query.
15 The QueryBuilder instance is passed by reference, it allows any query modification.
16
17
18 Impact
19 ======
20
21 The old :php:`$parameters` array has been marked as deprecated.
22 Existing hooks must be adjusted.
23
24 .. index:: Backend, Database, PHP-API