public function SearchApiEntityField::renderItems in Search API 8
Renders all items in this field together.
Parameters
array|\ArrayAccess $items: The items provided by getItems() for a single row.
Return value
string The rendered items.
Overrides SearchApiFieldTrait::renderItems
See also
\Drupal\views\Plugin\views\field\PrerenderList::renderItems()
File
- src/
Plugin/ views/ field/ SearchApiEntityField.php, line 320
Class
- SearchApiEntityField
- Displays entity field data.
Namespace
Drupal\search_api\Plugin\views\fieldCode
public function renderItems($items) {
if (!$this->options['field_rendering']) {
if ($this->fallbackHandler instanceof MultiItemsFieldHandlerInterface) {
return $this->fallbackHandler
->renderItems($items);
}
return '';
}
return parent::renderItems($items);
}