You are here

function PaymentViewsHandlerFieldTranslatableString::render in Payment 7

Overrides views_handler_field::render().

Overrides views_handler_field::render

File

views/PaymentViewsHandlerFieldTranslatableString.inc, line 32
Contains PaymentViewsHandlerFieldTranslatableString.

Class

PaymentViewsHandlerFieldTranslatableString
Views field handler for a translatable string that requires arguments from the DB.

Code

function render($values) {
  $string = $this
    ->get_value($values);
  $arguments = !empty($this->definition['string_arguments_field']) ? unserialize($this
    ->get_value($values, $this->definition['string_arguments_field'])) : array();
  return t($string, $arguments);
}