You are here

public function SearchApiDataSourceControllerInterface::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.

1 method overrides SearchApiDataSourceControllerInterface::getItemUrl()
SearchApiAbstractDataSourceController::getItemUrl in includes/datasource.inc
Retrieves a URL at which the item can be viewed on the web.

File

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

Class

SearchApiDataSourceControllerInterface
Interface for all data source controllers for Search API indexes.

Code

public function getItemUrl($item);