You are here

public function SearchApiQuery::getKeys in Search API 8

Retrieves the search keys for this query.

Return value

array|string|null This object's search keys, in the format described by \Drupal\search_api\ParseMode\ParseModeInterface::parseInput(). Or NULL if the query doesn't have any search keys set.

See also

\Drupal\search_api\Plugin\views\query\SearchApiQuery::keys()

\Drupal\search_api\Query\QueryInterface::getKeys()

File

src/Plugin/views/query/SearchApiQuery.php, line 1348

Class

SearchApiQuery
Defines a Views query class for searching on Search API indexes.

Namespace

Drupal\search_api\Plugin\views\query

Code

public function &getKeys() {
  if (!$this
    ->shouldAbort()) {
    return $this->query
      ->getKeys();
  }
  $ret = NULL;
  return $ret;
}