added searchinfos

This commit is contained in:
2019-06-06 18:12:07 +02:00
parent f0120ba10b
commit 058aed796a
4 changed files with 34 additions and 6 deletions

View File

@@ -91,6 +91,12 @@ class Base extends ControllerBase {
$this->sapiQuery();
$resp['count'] = $this->results->getResultCount();
$resp['infos'] = t('The search found @count result(s) with keywords @keys.', array(
"@count" => $resp['count'],
"@keys" => $this->keys
));
$resp['options'] = $this->query->getOptions();
$items = [];