public function SearchApiCombinedEntityDataSourceController::getItemLabel in Search API 7
Retrieves a human-readable label for an item.
Parameters
mixed $item: An item of this controller's type.
Return value
string|null Either a human-readable label for the item, or NULL if none is available.
Throws
SearchApiDataSourceException If any error state was encountered.
Overrides SearchApiAbstractDataSourceController::getItemLabel
File
- includes/
datasource_multiple.inc, line 128 - Contains SearchApiCombinedEntityDataSourceController.
Class
- SearchApiCombinedEntityDataSourceController
- Provides a datasource for indexing multiple types of entities.
Code
public function getItemLabel($item) {
return search_api_get_multi_type_item_label($item);
}