You are here

public function SearchApiAbstractDataSourceController::getItemUrl in Search API 7

Retrieves a URL at which the item can be viewed on the web.

Parameters

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

Return value

array|null Either an array containing the 'path' and 'options' keys used to build the URL of the item, and matching the signature of url(), or NULL if the item has no URL of its own.

Throws

SearchApiDataSourceException If any error state was encountered.

Overrides SearchApiDataSourceControllerInterface::getItemUrl

3 methods override SearchApiAbstractDataSourceController::getItemUrl()
SearchApiCombinedEntityDataSourceController::getItemUrl in includes/datasource_multiple.inc
Retrieves a URL at which the item can be viewed on the web.
SearchApiEntityDataSourceController::getItemUrl in includes/datasource_entity.inc
Retrieves a URL at which the item can be viewed on the web.
SearchApiExternalDataSourceController::getItemUrl in includes/datasource_external.inc
Get a URL at which the item can be viewed on the web.

File

includes/datasource.inc, line 540
Contains the SearchApiDataSourceControllerInterface as well as a default base class.

Class

SearchApiAbstractDataSourceController
Provides a default base class for datasource controllers.

Code

public function getItemUrl($item) {
  return NULL;
}