public function Field::setLabelPrefix in Search API 8
Sets this field's label prefix.
Parameters
string $label_prefix: A human-readable label representing this field's datasource and ending in some kind of visual separator.
Return value
$this
Overrides FieldInterface::setLabelPrefix
File
- src/
Item/ Field.php, line 449
Class
- Field
- Represents a field on a search item that can be indexed.
Namespace
Drupal\search_api\ItemCode
public function setLabelPrefix($label_prefix) {
$this->labelPrefix = $label_prefix;
return $this;
}