function SearchRow::buildOptionsForm

Same name in other branches
  1. 8.9.x core/modules/search/src/Plugin/views/row/SearchRow.php \Drupal\search\Plugin\views\row\SearchRow::buildOptionsForm()
  2. 10 core/modules/search/src/Plugin/views/row/SearchRow.php \Drupal\search\Plugin\views\row\SearchRow::buildOptionsForm()
  3. 11.x core/modules/search/src/Plugin/views/row/SearchRow.php \Drupal\search\Plugin\views\row\SearchRow::buildOptionsForm()

Overrides RowPluginBase::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\row

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    $form['score'] = [
        '#type' => 'checkbox',
        '#title' => $this->t('Display score'),
        '#default_value' => $this->options['score'],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.