You are here

public function SupportTicket::getAvailableSorts in Support Ticketing System 8

Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::getAvailableSorts().

Return value

array An array whose keys are the available sort options and whose corresponding values are human readable labels.

Overrides WizardPluginBase::getAvailableSorts

File

modules/support_ticket/src/Plugin/views/wizard/SupportTicket.php, line 54
Contains \Drupal\support_ticket\Plugin\views\wizard\SupportTicket.

Class

SupportTicket
Tests creating support ticket views with the wizard.

Namespace

Drupal\support_ticket\Plugin\views\wizard

Code

public function getAvailableSorts() {

  // You can't execute functions in properties, so override the method
  return array(
    'support_ticket_field_data-title:DESC' => $this
      ->t('Title'),
  );
}