function SortPluginBase::sort_options in Views (for Drupal 7) 8.3
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 lib/
Drupal/ views/ Plugin/ views/ sort/ SortPluginBase.php - Shortcut to display the value form.
File
- 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\sortCode
function sort_options() {
return array(
'ASC' => t('Sort ascending'),
'DESC' => t('Sort descending'),
);
}