1 views_handler_field_prerender_list.inc views_handler_field_prerender_list::get_value($values, $field = NULL, $raw = FALSE)

Get the value that's supposed to be rendered.

Parameters

$values: An object containing all retrieved values.

$field: Optional name of the field where the value is stored.

$raw: Use the raw data and not the data defined in pre_render

Overrides views_handler_field::get_value

File

core/modules/views/handlers/views_handler_field_prerender_list.inc, line 139
Definition of views_handler_field_prerender_list.

Class

views_handler_field_prerender_list
Field handler to provide a list of items.

Code

function get_value($values, $field = NULL, $raw = FALSE) {
  if ($raw) {
    return parent::get_value($values, $field);
  }
  $item = $this->get_items($values);
  $item = (array) $item;
  if (isset($field) && isset($item[$field])) {
    return $item[$field];
  }
  return $item;
}