You are here

public function SearchApiExternalDataSourceController::getItemId in Search API 7

Get the unique ID of an item.

Always returns 1.

Parameters

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

Return value

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

Overrides SearchApiAbstractDataSourceController::getItemId

File

includes/datasource_external.inc, line 86
Contains the SearchApiExternalDataSourceController class.

Class

SearchApiExternalDataSourceController
Base class for data source controllers for external data sources.

Code

public function getItemId($item) {
  return 1;
}