You are here

public function SortsField::setFieldName in Search API sorts 8

Overrides the field to sort on.

Parameters

string $field: The field of sorting.

1 call to SortsField::setFieldName()
SortsField::__construct in src/SortsField.php
Constructs an instance of the value object.

File

src/SortsField.php, line 43

Class

SortsField
A value object for a sorts field.

Namespace

Drupal\search_api_sorts

Code

public function setFieldName($field) {
  $this->field = $field;
}