You are here

public function SearchApiFulltext::defineOptions in Search API 8

Same name in this branch
  1. 8 src/Plugin/views/filter/SearchApiFulltext.php \Drupal\search_api\Plugin\views\filter\SearchApiFulltext::defineOptions()
  2. 8 src/Plugin/views/argument/SearchApiFulltext.php \Drupal\search_api\Plugin\views\argument\SearchApiFulltext::defineOptions()

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides SearchApiStandard::defineOptions

File

src/Plugin/views/argument/SearchApiFulltext.php, line 64

Class

SearchApiFulltext
Defines a contextual filter for doing fulltext searches.

Namespace

Drupal\search_api\Plugin\views\argument

Code

public function defineOptions() {
  $options = parent::defineOptions();
  $options['parse_mode'] = [
    'default' => 'terms',
  ];
  $options['fields'] = [
    'default' => [],
  ];
  $options['conjunction'] = [
    'default' => 'AND',
  ];
  return $options;
}