You are here

function PrerenderList::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/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'],
      ));
    }
  }
}