1 views_handler_field.inc | views_handler_field::get_value($values, $field = NULL) |
Get the value that's supposed to be rendered.
This api exists so that other modules can easy set the values of the field without having the need to change the render method as well.
Parameters
$values: An object containing all retrieved values.
$field: Optional name of the field where the value is stored.
File
- core/
modules/ views/ handlers/ views_handler_field.inc, line 359 - @todo.
Class
- views_handler_field
- Base field handler that has no options and renders an unformatted field.
Code
function get_value($values, $field = NULL) {
$alias = isset($field) ? $this->aliases[$field] : $this->field_alias;
if (isset($values->{$alias})) {
return $values->{$alias};
}
}