public function SearchApiMoreLikeThis::defineOptions in Search API 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 SearchApiStandard::defineOptions
File
- src/
Plugin/ views/ argument/ SearchApiMoreLikeThis.php, line 24
Class
- SearchApiMoreLikeThis
- Defines a contextual filter for displaying a "More Like This" list.
Namespace
Drupal\search_api\Plugin\views\argumentCode
public function defineOptions() {
$options = parent::defineOptions();
unset($options['break_phrase']);
unset($options['not']);
$options['fields'] = [
'default' => [],
];
return $options;
}