You are here

public function MediaDirectoryArgument::getSortName in Media Directories 8

Same name and namespace in other branches
  1. 3.x src/Plugin/views/argument/MediaDirectoryArgument.php \Drupal\media_directories\Plugin\views\argument\MediaDirectoryArgument::getSortName()
  2. 2.x src/Plugin/views/argument/MediaDirectoryArgument.php \Drupal\media_directories\Plugin\views\argument\MediaDirectoryArgument::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).

Overrides ArgumentPluginBase::getSortName

File

src/Plugin/views/argument/MediaDirectoryArgument.php, line 136

Class

MediaDirectoryArgument
Media directory argument plugin.

Namespace

Drupal\media_directories\Plugin\views\argument

Code

public function getSortName() {
  return $this
    ->t('Numerical', [], [
    'context' => 'Sort order',
  ]);
}