Provide a list of options for the default sort form.
Should be overridden by classes that don't override sort_form
File
- drupal/core/modules/views/lib/Drupal/views/Plugin/views/sort/SortPluginBase.php, line 182
- Definition of Drupal\views\Plugin\views\sort\SortPluginBase.
Class
- SortPluginBase
- Base sort handler that has no options and performs a simple sort.
Namespace
Drupal\views\Plugin\views\sort
Code
function sort_options() {
return array(
'ASC' => t('Sort ascending'),
'DESC' => t('Sort descending'),
);
}