public function SortPluginBase::defaultExposeOptions in Views (for Drupal 7) 8.3
Provide default options for exposed sorts.
Overrides HandlerBase::defaultExposeOptions
File
- lib/
Drupal/ views/ Plugin/ views/ sort/ SortPluginBase.php, line 210 - Definition of Drupal\views\Plugin\views\sort\SortPluginBase.
Class
- SortPluginBase
- Base sort handler that has no options and performs a simple sort.
Namespace
Drupal\views\Plugin\views\sortCode
public function defaultExposeOptions() {
$this->options['expose'] = array(
'order' => $this->options['order'],
'label' => $this->definition['title'],
);
}