You are here

public function SearchApiSortsField::setDefaultSort in Search API sorts 8

Sets the default sorts flag.

Parameters

bool $default_sort: Field is the default sorts.

File

src/Entity/SearchApiSortsField.php, line 185

Class

SearchApiSortsField
Defines the Search api sorts index configuration entity.

Namespace

Drupal\search_api_sorts\Entity

Code

public function setDefaultSort($default_sort) {
  $this->default_sort = $default_sort;
}