Skip to content

Commit

Permalink
[FEATURE] Allow extending page tree filter functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf committed Jan 12, 2025
1 parent 69d7753 commit 8167870
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
);
}
}
Expand Down

0 comments on commit 8167870

Please sign in to comment.