/**
* Execute the search.
*
* This is a dummy search, so when search "executes", we just return a dummy
* result containing the keywords and a list of conditions.
*
* @return array
* A structured list of search results
*/
public function execute() { $results =
[];
if (!
$this->
isSearchExecutable()) { return $results;
} return [ [ 'link' => Url::
fromRoute('test_page_test.test_page'
)->
toString(),
'type' => 'Dummy result type',
'title' => 'Dummy title',
'snippet' =>
new FormattableMarkup("Dummy search snippet to display. Keywords: @keywords\n\nConditions: @search_parameters",
['@keywords' =>
$this->keywords, '@search_parameters' =>
print_r($this->searchParameters, TRUE
)]),
],
];
}