protected function Field::renderItems

Render all items in this field together.

When using advanced render, each possible item in the list is rendered individually. Then the items are all pasted together.

File

drupal/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php, line 665
Definition of Drupal\field\Plugin\views\field\Field.

Class

Field
A field that displays fieldapi fields.

Namespace

Drupal\field\Plugin\views\field

Code

protected function renderItems($items) {
  if (!empty($items)) {
    if (!$this->options['group_rows']) {
      return implode('', $items);
    }
    if ($this->options['multi_type'] == 'separator') {
      return implode(filter_xss_admin($this->options['separator']), $items);
    }
    else {
      return theme('item_list', array(
        'items' => $items,
        'title' => NULL,
        'type' => $this->options['multi_type'],
      ));
    }
  }
}