protected function SpellCheck::defineOptions in Search API Spellcheck 8
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 AreaPluginBase::defineOptions
File
- src/
Plugin/ views/ area/ SpellCheck.php, line 46
Class
- SpellCheck
- Provides an area for messages.
Namespace
Drupal\search_api_spellcheck\Plugin\views\areaCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['search_api_spellcheck_filter_name']['default'] = 'query';
$options['search_api_spellcheck_hide_on_result']['default'] = TRUE;
return $options;
}