You are here

protected function ManageSortFieldsForm::getSearchApiSortsFieldsValues in Search API sorts 8

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
Form constructor.

File

src/Form/ManageSortFieldsForm.php, line 236

Class

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

Namespace

Drupal\search_api_sorts\Form

Code

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