public function SearchApiSortsField::setDefaultOrder in Search API sorts 8
Sets the default order of the sorts field.
Parameters
string $default_order: The default order of the sorts field.
File
- src/
Entity/ SearchApiSortsField.php, line 225
Class
- SearchApiSortsField
- Defines the Search api sorts index configuration entity.
Namespace
Drupal\search_api_sorts\EntityCode
public function setDefaultOrder($default_order) {
$this->default_order = $default_order;
}