You are here

public function Media::getAvailableSorts in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/src/Plugin/views/wizard/Media.php \Drupal\media\Plugin\views\wizard\Media::getAvailableSorts()
  2. 9 core/modules/media/src/Plugin/views/wizard/Media.php \Drupal\media\Plugin\views\wizard\Media::getAvailableSorts()

Gets the availableSorts property.

Return value

array

Overrides WizardPluginBase::getAvailableSorts

File

core/modules/media/src/Plugin/views/wizard/Media.php, line 28

Class

Media
Provides Views creation wizard for Media.

Namespace

Drupal\media\Plugin\views\wizard

Code

public function getAvailableSorts() {
  return [
    'media_field_data-name:DESC' => $this
      ->t('Media name'),
  ];
}