protected function SearchRow::defineOptions in Drupal 10
Same name and namespace in other branches
- 8 core/modules/search/src/Plugin/views/row/SearchRow.php \Drupal\search\Plugin\views\row\SearchRow::defineOptions()
- 9 core/modules/search/src/Plugin/views/row/SearchRow.php \Drupal\search\Plugin\views\row\SearchRow::defineOptions()
File
- core/
modules/ search/ src/ Plugin/ views/ row/ SearchRow.php, line 22
Class
- SearchRow
- Row handler plugin for displaying search results.
Namespace
Drupal\search\Plugin\views\rowCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['score'] = [
'default' => TRUE,
];
return $options;
}