protected function SortPluginBase::defineOptions in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/sort/SortPluginBase.php \Drupal\views\Plugin\views\sort\SortPluginBase::defineOptions()
- 9 core/modules/views/src/Plugin/views/sort/SortPluginBase.php \Drupal\views\Plugin\views\sort\SortPluginBase::defineOptions()
1 call to SortPluginBase::defineOptions()
- Date::defineOptions in core/modules/ views/ src/ Plugin/ views/ sort/ Date.php 
1 method overrides SortPluginBase::defineOptions()
- Date::defineOptions in core/modules/ views/ src/ Plugin/ views/ sort/ Date.php 
File
- core/modules/ views/ src/ Plugin/ views/ sort/ SortPluginBase.php, line 44 
Class
- SortPluginBase
- Base sort handler that has no options and performs a simple sort.
Namespace
Drupal\views\Plugin\views\sortCode
protected function defineOptions() {
  $options = parent::defineOptions();
  $options['order'] = [
    'default' => 'ASC',
  ];
  $options['exposed'] = [
    'default' => FALSE,
  ];
  $options['expose'] = [
    'contains' => [
      'label' => [
        'default' => '',
      ],
      'field_identifier' => [
        'default' => '',
      ],
    ],
  ];
  return $options;
}