public function DatasourcePluginBase::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.
Overrides DatasourceInterface::getItemUrl
1 method overrides DatasourcePluginBase::getItemUrl()
- ContentEntity::getItemUrl in src/
Plugin/ search_api/ datasource/ ContentEntity.php - Retrieves a URL at which the item can be viewed on the web.
File
- src/
Datasource/ DatasourcePluginBase.php, line 94
Class
- DatasourcePluginBase
- Defines a base class from which other datasources may extend.
Namespace
Drupal\search_api\DatasourceCode
public function getItemUrl(ComplexDataInterface $item) {
return NULL;
}