Skip to content

Commit

Permalink
[FEATURE] Add signal before search in resultsAction
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérémie Roulin authored and dkd-kaehm committed Dec 22, 2022
1 parent 6333c2a commit fa216a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/Controller/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ public function resultsAction(): ResponseInterface
$arguments = $this->request->getArguments();
$pageId = $this->typoScriptFrontendController->getRequestedId();
$languageId = Util::getLanguageUid();
$searchRequest = $this->getSearchRequestBuilder()->buildForSearch($arguments, $pageId, $languageId);

$arguments = $this->emitActionSignal(__CLASS__, 'beforeSearch', [$arguments]);

$searchRequest = $this->getSearchRequestBuilder()->buildForSearch($arguments, $pageId, $languageId);
$searchResultSet = $this->searchService->search($searchRequest);

// we pass the search result set to the controller context, to have the possibility
Expand Down

0 comments on commit fa216a6

Please sign in to comment.