You are here

public function Query::getParseMode in Search API 8

Retrieves the parse mode.

Return value

\Drupal\search_api\ParseMode\ParseModeInterface The parse mode.

Overrides QueryInterface::getParseMode

File

src/Query/Query.php, line 381

Class

Query
Provides a standard implementation for a Search API query.

Namespace

Drupal\search_api\Query

Code

public function getParseMode() {
  if (!$this->parseMode) {
    $this->parseMode = $this
      ->getParseModeManager()
      ->createInstance('terms');
  }
  return $this->parseMode;
}