You are here

protected function SearchApiViewsHandlerArgumentTaxonomyTerm::fillValue in Search API 7

Fill $this->value with data from the argument.

Uses views_break_phrase(), if appropriate.

2 calls to SearchApiViewsHandlerArgumentTaxonomyTerm::fillValue()
SearchApiViewsHandlerArgumentTaxonomyTerm::query in contrib/search_api_views/includes/handler_argument_taxonomy_term.inc
Set up the query for this argument.
SearchApiViewsHandlerArgumentTaxonomyTerm::title in contrib/search_api_views/includes/handler_argument_taxonomy_term.inc
Get the title this argument will assign the view, given the argument.

File

contrib/search_api_views/includes/handler_argument_taxonomy_term.inc, line 95
Contains the SearchApiViewsHandlerArgumentTaxonomyTerm class.

Class

SearchApiViewsHandlerArgumentTaxonomyTerm
Defines a contextual filter searching through all indexed taxonomy fields.

Code

protected function fillValue() {
  if (!empty($this->options['break_phrase'])) {
    views_break_phrase($this->argument, $this);
  }
  else {
    $this->value = array(
      $this->argument,
    );
  }
}