Retrieves all sort information used by the default display.
Additional to the one provided by the plugin this method takes care about adding additional sorts based on user input.
array $form: The full wizard form array.
array $form_state: The current state of the wizard form.
array An array of sort arrays keyed by ID. A sort array contains the options accepted by a sort handler.
protected function default_display_sorts($form, $form_state) {
$sorts = array();
// Add any sorts provided by the plugin.
foreach ($this
->getSorts() as $name => $info) {
$sorts[$name] = $info;
}
// Add any sorts specified by the user when filling out the wizard.
$sorts = array_merge($sorts, $this
->default_display_sorts_user($form, $form_state));
return $sorts;
}