searchWord = $searchWord; return $this; } public function setSearchLevel(int $searchLevel): self { $this->searchLevel = $searchLevel; return $this; } public function setAllowedSearchLevels(array $allowedSearchLevels): self { $this->allowedSearchLevels = $allowedSearchLevels; return $this; } public function render(ServerRequestInterface $request, UriInterface|string|null $formUrl = null): string { $view = $this->backendViewFactory->create($request, ['typo3/cms-backend']); return $view ->assignMultiple([ 'formUrl' => $formUrl, 'availableSearchLevels' => $this->allowedSearchLevels, 'selectedSearchLevel' => $this->searchLevel, 'searchString' => $this->searchWord, ]) ->render('RecordSearchBox'); } }