function PrerenderList::render_items

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/views/lib/Drupal/views/Plugin/views/field/PrerenderList.php, line 78
Definition of Drupal\views\Plugin\views\field\PrerenderList.

Class

PrerenderList
Field handler to provide a list of items.

Namespace

Drupal\views\Plugin\views\field

Code

function render_items($items) {
  if (!empty($items)) {
    if ($this->options['type'] == 'separator') {
      return implode($this
        ->sanitizeValue($this->options['separator'], 'xss_admin'), $items);
    }
    else {
      return theme('item_list', array(
        'items' => $items,
        'title' => NULL,
        'type' => $this->options['type'],
      ));
    }
  }
}