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