You are here

public function ArgumentPluginBase::getSortName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php \Drupal\views\Plugin\views\argument\ArgumentPluginBase::getSortName()

Return a description of how the argument would normally be sorted.

Subclasses should override this to specify what the default sort order of their argument is (e.g. alphabetical, numeric, date).

1 call to ArgumentPluginBase::getSortName()
ArgumentPluginBase::defaultSummaryForm in core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
Provide a form for selecting further summary options when the default action is set to display one.
5 methods override ArgumentPluginBase::getSortName()
Date::getSortName in core/modules/views/src/Plugin/views/argument/Date.php
Return a description of how the argument would normally be sorted.
GroupByNumeric::getSortName in core/modules/views/src/Plugin/views/argument/GroupByNumeric.php
Return a description of how the argument would normally be sorted.
NumericArgument::getSortName in core/modules/views/src/Plugin/views/argument/NumericArgument.php
Return a description of how the argument would normally be sorted.
StringArgument::getSortName in core/modules/views/src/Plugin/views/argument/StringArgument.php
Return a description of how the argument would normally be sorted.
UserUid::getSortName in core/modules/comment/src/Plugin/views/argument/UserUid.php
Return a description of how the argument would normally be sorted.

File

core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php, line 1134
Contains \Drupal\views\Plugin\views\argument\ArgumentPluginBase.

Class

ArgumentPluginBase
Base class for argument (contextual filter) handler plugins.

Namespace

Drupal\views\Plugin\views\argument

Code

public function getSortName() {
  return $this
    ->t('Default sort', array(), array(
    'context' => 'Sort order',
  ));
}