You are here

public function DatasourceInterface::getItemLanguage in Search API 8

Retrieves the item's language.

Parameters

\Drupal\Core\TypedData\ComplexDataInterface $item: An item of this datasource's type.

Return value

string The language code of this item.

1 method overrides DatasourceInterface::getItemLanguage()
DatasourcePluginBase::getItemLanguage in src/Datasource/DatasourcePluginBase.php
Retrieves the item's language.

File

src/Datasource/DatasourceInterface.php, line 116

Class

DatasourceInterface
Describes a source for search items.

Namespace

Drupal\search_api\Datasource

Code

public function getItemLanguage(ComplexDataInterface $item);