You are here

protected function ManageSortFieldsForm::getSearchApiSortsFieldsValues in Search API Sorts Widget 1.x

Returns an array of all saved search api sorts fields.

Return value

array An array of fields, filled with values from the index.

1 call to ManageSortFieldsForm::getSearchApiSortsFieldsValues()
ManageSortFieldsForm::buildForm in src/Form/ManageSortFieldsForm.php

File

src/Form/ManageSortFieldsForm.php, line 262

Class

ManageSortFieldsForm
Provides a form for managing sort fields for a search api display.

Namespace

Drupal\search_api_sorts_widget\Form

Code

protected function getSearchApiSortsFieldsValues() {
  $fields = $this
    ->buildSearchApiSortsFieldsDefaultValues();
  $this
    ->fillSearchApiSortsFieldsValues($fields);
  return $fields;
}