You are here

public function SearchApiViewsHandlerArgumentString::query in Search API 7

Set up the query for this argument.

The argument sent may be found at $this->argument.

Overrides SearchApiViewsHandlerArgument::query

File

contrib/search_api_views/includes/handler_argument_string.inc, line 18
Contains SearchApiViewsHandlerArgumentString.

Class

SearchApiViewsHandlerArgumentString
Views argument handler class for handling string fields.

Code

public function query($group_by = FALSE) {
  if (empty($this->value)) {
    if (!empty($this->options['break_phrase'])) {
      views_break_phrase_string($this->argument, $this);
    }
    else {
      $this->value = array(
        $this->argument,
      );
    }
  }
  parent::query($group_by);
}