function SortPluginBase::sort_options

Provide a list of options for the default sort form. Should be overridden by classes that don't override sort_form

1 call to SortPluginBase::sort_options()
SortPluginBase::show_sort_form in drupal/core/modules/views/lib/Drupal/views/Plugin/views/sort/SortPluginBase.php
Shortcut to display the value 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'),
  );
}