public function DatasourceInterface::getItemLabel in Search API 8
Retrieves a human-readable label for an item.
Parameters
\Drupal\Core\TypedData\ComplexDataInterface $item: An item of this controller's type.
Return value
string|null Either a human-readable label for the item, or NULL if none is available.
1 method overrides DatasourceInterface::getItemLabel()
- DatasourcePluginBase::getItemLabel in src/
Datasource/ DatasourcePluginBase.php - Retrieves a human-readable label for an item.
File
- src/
Datasource/ DatasourceInterface.php, line 90
Class
- DatasourceInterface
- Describes a source for search items.
Namespace
Drupal\search_api\DatasourceCode
public function getItemLabel(ComplexDataInterface $item);