You are here

protected function SimilarTermsSort::defineOptions in Similar By Terms 8

Define default sorting order.

Overrides SortPluginBase::defineOptions

File

src/Plugin/views/sort/SimilarTermsSort.php, line 19

Class

SimilarTermsSort
Handler which sort by the similarity.

Namespace

Drupal\similarterms\Plugin\views\sort

Code

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