You are here

protected function DraggableViewsSort::defineOptions in DraggableViews 2.0.x

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/DraggableViewsSort.php, line 27

Class

DraggableViewsSort
Basic sort handler for Draggableviews Weight.

Namespace

Drupal\draggableviews\Plugin\views\sort

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['draggable_views_reference'] = [
    'default' => '',
  ];
  $options['draggable_views_null_order'] = [
    'default' => 'after',
  ];
  $options['draggable_views_pass_arguments'] = [
    'default' => 0,
  ];
  return $options;
}