public function SearchRow::buildOptionsForm 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::buildOptionsForm()
- 9 core/modules/search/src/Plugin/views/row/SearchRow.php \Drupal\search\Plugin\views\row\SearchRow::buildOptionsForm()
File
- core/
modules/ search/ src/ Plugin/ views/ row/ SearchRow.php, line 33
Class
- SearchRow
- Row handler plugin for displaying search results.
Namespace
Drupal\search\Plugin\views\rowCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$form['score'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Display score'),
'#default_value' => $this->options['score'],
];
}