From 8167870f3ba2d4b206f489458112a2c35a176dcf Mon Sep 17 00:00:00 2001 From: "lina.wolf" Date: Sat, 11 Jan 2025 14:59:32 +0100 Subject: [PATCH] [FEATURE] Allow extending page tree filter functionality Resolves https://github.com/TYPO3-Documentation/Changelog-To-Doc/issues/1184 Releases: main --- .../_BeforePageTreeIsFilteredEvent/_MyEventListener.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/ApiOverview/Events/Events/Backend/_BeforePageTreeIsFilteredEvent/_MyEventListener.php b/Documentation/ApiOverview/Events/Events/Backend/_BeforePageTreeIsFilteredEvent/_MyEventListener.php index ba9744020..9f05b1a2a 100644 --- a/Documentation/ApiOverview/Events/Events/Backend/_BeforePageTreeIsFilteredEvent/_MyEventListener.php +++ b/Documentation/ApiOverview/Events/Events/Backend/_BeforePageTreeIsFilteredEvent/_MyEventListener.php @@ -20,9 +20,10 @@ public function removeFetchedPageContent(BeforePageTreeIsFilteredEvent $event): if (preg_match('/doktype:([0-9]+)/i', $event->searchPhrase, $match)) { $doktype = $match[1]; $event->searchParts = $event->searchParts->with( - $event->queryBuilder->expr()->eq('doktype', - $event->queryBuilder->createNamedParameter($doktype, Connection::PARAM_INT) - ) + $event->queryBuilder->expr()->eq( + 'doktype', + $event->queryBuilder->createNamedParameter($doktype, Connection::PARAM_INT), + ), ); } }