You are here

public function SearchApiEtDatasourceController::getIdFieldInfo in Search API Entity Translation 7.2

Returns information on the ID field for this controller's type.

Return value

array An associative array containing the following keys:

  • key: The property key for the ID field, as used in the item wrapper.
  • type: The type of the ID field. Has to be one of the types from search_api_field_types(). List types ("list<*>") are not allowed.

Throws

SearchApiDataSourceException If any error state was encountered.

Overrides SearchApiEntityDataSourceController::getIdFieldInfo

File

includes/SearchApiEtDatasourceController.php, line 25
Contains the SearchApiEtDatasourceController class.

Class

SearchApiEtDatasourceController
Provides multilingual versions of all entity types.

Code

public function getIdFieldInfo() {
  return array(
    'key' => 'search_api_et_id',
    'type' => 'string',
  );
}