function SearchRow::defineOptions

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

Overrides RowPluginBase::defineOptions

File

core/modules/search/src/Plugin/views/row/SearchRow.php, line 23

Class

SearchRow
Row handler plugin for displaying search results.

Namespace

Drupal\search\Plugin\views\row

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['score'] = [
        'default' => TRUE,
    ];
    return $options;
}

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