You are here

function Field::render_items in Views (for Drupal 7) 8.3

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

lib/Views/field/Plugin/views/field/Field.php, line 617
Definition of Views\field\Plugin\views\field\Field.

Class

Field
A field that displays fieldapi fields.

Namespace

Views\field\Plugin\views\field

Code

function render_items($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'],
      ));
    }
  }
}