You are here

public function Field::setLabel in Search API 8

Sets this field's label.

Parameters

string $label: A human-readable label representing this field's property path.

Return value

$this

Overrides FieldInterface::setLabel

File

src/Item/Field.php, line 390

Class

Field
Represents a field on a search item that can be indexed.

Namespace

Drupal\search_api\Item

Code

public function setLabel($label) {
  $this->label = $label;
  return $this;
}