You are here

public function SearchApiDenormalizedEntityDataSourceController::getIdFieldInfo in Search API Grouping 7.2

Return 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.

Overrides SearchApiEntityDataSourceController::getIdFieldInfo

File

includes/datasource_denormalized_entity.inc, line 30
Contains the SearchApiDenormalizedEntityDataSourceController class.

Class

SearchApiDenormalizedEntityDataSourceController
Data source for all entities known to the Entity API.

Code

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