public function Node::getAvailableSorts

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

Return value

array

Overrides WizardPluginBase::getAvailableSorts

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/wizard/Node.php, line 67
Definition of Drupal\node\Plugin\views\wizard\Node.

Class

Node
Tests creating node views with the wizard.

Namespace

Drupal\node\Plugin\views\wizard

Code

public function getAvailableSorts() {

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