public function SearchApiFulltext::defineOptions in Search API 8
Same name in this branch
- 8 src/Plugin/views/filter/SearchApiFulltext.php \Drupal\search_api\Plugin\views\filter\SearchApiFulltext::defineOptions()
- 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 FilterPluginBase::defineOptions
File
- src/
Plugin/ views/ filter/ SearchApiFulltext.php, line 128
Class
- SearchApiFulltext
- Defines a filter for adding a fulltext search to the view.
Namespace
Drupal\search_api\Plugin\views\filterCode
public function defineOptions() {
$options = parent::defineOptions();
$options['operator']['default'] = 'and';
$options['parse_mode'] = [
'default' => 'terms',
];
$options['min_length'] = [
'default' => '',
];
$options['fields'] = [
'default' => [],
];
$options['expose']['contains']['placeholder'] = [
'default' => '',
];
$options['expose']['contains']['expose_fields'] = [
'default' => FALSE,
];
$options['expose']['contains']['searched_fields_id'] = [
'default' => '',
];
return $options;
}