You are here

public function DatasourcePluginBase::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.

Overrides DatasourceInterface::getItemLabel

1 method overrides DatasourcePluginBase::getItemLabel()
ContentEntity::getItemLabel in src/Plugin/search_api/datasource/ContentEntity.php
Retrieves a human-readable label for an item.

File

src/Datasource/DatasourcePluginBase.php, line 66

Class

DatasourcePluginBase
Defines a base class from which other datasources may extend.

Namespace

Drupal\search_api\Datasource

Code

public function getItemLabel(ComplexDataInterface $item) {
  return NULL;
}