You are here

public function SearchApiQuery::getOriginalKeys in Search API 8

Retrieves the unparsed search keys for this query as originally entered.

Return value

array|string|null The unprocessed search keys, exactly as passed to this object. Has the same format as the return value of getKeys().

See also

keys()

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

File

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

Class

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

Namespace

Drupal\search_api\Plugin\views\query

Code

public function getOriginalKeys() {
  if (!$this
    ->shouldAbort()) {
    return $this->query
      ->getOriginalKeys();
  }
  return NULL;
}