You are here

protected function ViewsSimpleMathFieldSort::defineOptions in Views Simple Math Field 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/views/sort/ViewsSimpleMathFieldSort.php \Drupal\views_simple_math_field\Plugin\views\sort\ViewsSimpleMathFieldSort::defineOptions()

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides SortPluginBase::defineOptions

File

src/Plugin/views/sort/ViewsSimpleMathFieldSort.php, line 22

Class

ViewsSimpleMathFieldSort
Handler which sort by the similarity.

Namespace

Drupal\views_simple_math_field\Plugin\views\sort

Code

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