function commerce_cardonfile_handler_field_card_label::get_value in Commerce Card on File 7.2
Return the entity object or a certain property of the entity.
Overrides views_handler_field_entity::get_value
File
- includes/
views/ handlers/ commerce_cardonfile_handler_field_card_label.inc, line 8
Class
- commerce_cardonfile_handler_field_card_label
- Field handler to present the card label.
Code
function get_value($values, $field = NULL) {
if (!isset($this->entities[$this->view->row_index])) {
return '';
}
$card = $this->entities[$this->view->row_index];
return $card
->label();
}