You are here

public function SearchRow::buildOptionsForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/search/src/Plugin/views/row/SearchRow.php \Drupal\search\Plugin\views\row\SearchRow::buildOptionsForm()

Provide a form for setting options.

Overrides RowPluginBase::buildOptionsForm

File

core/modules/search/src/Plugin/views/row/SearchRow.php, line 38
Contains \Drupal\search\Plugin\views\row\SearchRow.

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'] = array(
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Display score'),
    '#default_value' => $this->options['score'],
  );
}