You are here

public function DatasourceInterface::getItemUrl in Search API 8

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

Parameters

\Drupal\Core\TypedData\ComplexDataInterface $item: An item of this datasource's type.

Return value

\Drupal\Core\Url|null Either an object representing the URL of the given item, or NULL if the item has no URL of its own.

1 method overrides DatasourceInterface::getItemUrl()
DatasourcePluginBase::getItemUrl in src/Datasource/DatasourcePluginBase.php
Retrieves a URL at which the item can be viewed on the web.

File

src/Datasource/DatasourceInterface.php, line 128

Class

DatasourceInterface
Describes a source for search items.

Namespace

Drupal\search_api\Datasource

Code

public function getItemUrl(ComplexDataInterface $item);