function Media::getAvailableSorts

Same name in other branches
  1. 9 core/modules/media/src/Plugin/views/wizard/Media.php \Drupal\media\Plugin\views\wizard\Media::getAvailableSorts()
  2. 8.9.x core/modules/media/src/Plugin/views/wizard/Media.php \Drupal\media\Plugin\views\wizard\Media::getAvailableSorts()
  3. 10 core/modules/media/src/Plugin/views/wizard/Media.php \Drupal\media\Plugin\views\wizard\Media::getAvailableSorts()

Overrides WizardPluginBase::getAvailableSorts

File

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

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'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.