You are here

function i18nviews_handler_field_taxonomy_term_description::get_value in Internationalization Views 7.3

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.

Overrides views_handler_field::get_value

1 call to i18nviews_handler_field_taxonomy_term_description::get_value()
i18nviews_handler_field_taxonomy_term_description::pre_render in includes/i18nviews_handler_field_taxonomy_term_description.inc

File

includes/i18nviews_handler_field_taxonomy_term_description.inc, line 21

Class

i18nviews_handler_field_taxonomy_term_description
Field handler to provide simple renderer that allows linking to a taxonomy term.

Code

function get_value($values, $field = NULL) {
  $alias = isset($field) ? $this->aliases[$field] : $this->field_alias;
  $alias_localized = $alias . '_i18n';
  if (isset($values->{$alias_localized})) {
    return $values->{$alias_localized};
  }
  return parent::get_value($values, $field);
}