public function SearchApiIndex::loadItems in Search API 7
Helper method to load items from the type lying on this index.
Parameters
array $ids: The IDs of the items to load.
Return value
array The requested items, as loaded by the data source.
See also
SearchApiDataSourceControllerInterface::loadItems()
File
- includes/
index_entity.inc, line 1006 - Contains SearchApiIndex.
Class
- SearchApiIndex
- Class representing a search index.
Code
public function loadItems(array $ids) {
try {
return $this
->datasource()
->loadItems($ids);
} catch (SearchApiException $e) {
watchdog_exception('search_api', $e);
return array();
}
}