function Media::getAvailableSorts
Same name in other branches
- 8.9.x core/modules/media/src/Plugin/views/wizard/Media.php \Drupal\media\Plugin\views\wizard\Media::getAvailableSorts()
- 10 core/modules/media/src/Plugin/views/wizard/Media.php \Drupal\media\Plugin\views\wizard\Media::getAvailableSorts()
- 11.x 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 28
Class
- Media
- Provides Views creation wizard for Media.
Namespace
Drupal\media\Plugin\views\wizardCode
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.