You are here

public function SearchApiDenormalizedEntityDataSourceController::getItemId in Search API Grouping 7.2

Get the unique ID of an item.

Parameters

object $item: An item of this controller's type.

Return value

string|NULL Either the unique ID of the item, or NULL if none is available.

Overrides SearchApiEntityDataSourceController::getItemId

File

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

Class

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

Code

public function getItemId($item) {
  return $item->item_id ? $item->item_id : NULL;
}