public function DatasourceInterface::viewMultipleItems in Search API 8
Returns the render array for the provided items and view mode.
Parameters
\Drupal\Core\TypedData\ComplexDataInterface[] $items: The items to render.
string $view_mode: (optional) The view mode that should be used to render the items.
string|null $langcode: (optional) For which language the items should be rendered. Defaults to the language each item has been loaded in.
Return value
array A render array for displaying the items.
1 method overrides DatasourceInterface::viewMultipleItems()
- DatasourcePluginBase::viewMultipleItems in src/
Datasource/ DatasourcePluginBase.php - Returns the render array for the provided items and view mode.
File
- src/
Datasource/ DatasourceInterface.php, line 217
Class
- DatasourceInterface
- Describes a source for search items.
Namespace
Drupal\search_api\DatasourceCode
public function viewMultipleItems(array $items, $view_mode, $langcode = NULL);