You are here

function PrerenderList::get_items in Views (for Drupal 7) 8.3

Return an array of items for the field.

Items should be stored in the result array, if possible, as an array with 'value' as the actual displayable value of the item, plus any items that might be found in the 'alter' options array for creating links, such as 'path', 'fragment', 'query' etc, such a thing is to be made. Additionally, items that might be turned into tokens should also be in this array.

File

lib/Drupal/views/Plugin/views/field/PrerenderList.php, line 104
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 get_items($values) {
  $field = $this
    ->get_value($values);
  if (!empty($this->items[$field])) {
    return $this->items[$field];
  }
  return array();
}