You are here

public function FieldInterface::getLabel in Search API 8

Retrieves this field's label.

The field's label, contrary to the label returned by the field's data definition, contains a human-readable representation of the full property path. The datasource label is not included, though – use getPrefixedLabel() for that.

Return value

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

1 method overrides FieldInterface::getLabel()
Field::getLabel in src/Item/Field.php
Retrieves this field's label.

File

src/Item/FieldInterface.php, line 164

Class

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

Namespace

Drupal\search_api\Item

Code

public function getLabel();