From eba30abf0be275b7bbab204f9a3c26ac71ec6e0e Mon Sep 17 00:00:00 2001 From: Remo Schneider <noreply@example.com> Date: Thu, 26 Nov 2020 10:13:15 +0000 Subject: [PATCH] [DOCS] Fix hook registration example in changelog The `makeSearchStringConstraints` hook in DatabaseRecordList expects a class name to be given as value. The method to be called on the instantiated hook object is fix and can not be provided in the hook registration. Releases: master, 10.4, 9.5 Resolves: #92938 Change-Id: I43b0b553901019fa299bb4c9632722cf2beb759f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66907 Tested-by: Oliver Bartsch <bo@cedev.de> Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Oliver Bartsch <bo@cedev.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> --- ...-AddConstraintHookInDatabaseRecordListMakeSearchString.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/core/Documentation/Changelog/9.2/Feature-71911-AddConstraintHookInDatabaseRecordListMakeSearchString.rst b/typo3/sysext/core/Documentation/Changelog/9.2/Feature-71911-AddConstraintHookInDatabaseRecordListMakeSearchString.rst index 1096eb484d9f..ffb60e0a93ee 100644 --- a/typo3/sysext/core/Documentation/Changelog/9.2/Feature-71911-AddConstraintHookInDatabaseRecordListMakeSearchString.rst +++ b/typo3/sysext/core/Documentation/Changelog/9.2/Feature-71911-AddConstraintHookInDatabaseRecordListMakeSearchString.rst @@ -22,7 +22,7 @@ An example implementation could look like this: .. code-block:: php $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList::class]['makeSearchStringConstraints'][1313131313] = - \MyVendor\MySite\Hooks\DatabaseRecordListHook::class . '->makeSearchStringConstraints'; + \MyVendor\MySite\Hooks\DatabaseRecordListHook::class; :file:`EXT:my_site/Classes/Hooks/DatabaseRecordListHook.php` @@ -44,4 +44,4 @@ An example implementation could look like this: } } -.. index:: Backend, Database, PHP-API \ No newline at end of file +.. index:: Backend, Database, PHP-API -- GitLab