Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SearchRow.php

function 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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal