public function Media::getAvailableSorts in Drupal 9
Same name and namespace in other branches
- 8 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\wizardCode
public function getAvailableSorts() {
return [
'media_field_data-name:DESC' => $this
->t('Media name'),
];
}