public function Node::getAvailableSorts in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\wizard\WizardPluginBase::getAvailableSorts().
Return value
array
Overrides WizardPluginBase::getAvailableSorts
File
- lib/
Views/ node/ Plugin/ views/ wizard/ Node.php, line 67 - Definition of Views\node\Plugin\views\wizard\Node.
Class
- Node
- Tests creating node views with the wizard.
Namespace
Views\node\Plugin\views\wizardCode
public function getAvailableSorts() {
// You can't execute functions in properties, so override the method
return array(
'title:DESC' => t('Title'),
);
}