You are here

public function Media::getAvailableSorts in Media entity 8

Gets the availableSorts property.

Return value

array

Overrides WizardPluginBase::getAvailableSorts

File

src/Plugin/views/wizard/Media.php, line 40

Class

Media
Tests creating media views with the wizard.

Namespace

Drupal\media_entity\Plugin\views\wizard

Code

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