1 views_handler_field_locale_link_edit.inc views_handler_field_locale_link_edit::render_link($data, $values)

File

core/modules/locale/views/views_handler_field_locale_link_edit.inc, line 50
Definition of views_handler_field_locale_link_edit.

Class

views_handler_field_locale_link_edit
Field handler to present a link to edit a translation.

Code

function render_link($data, $values) {
  $text = !empty($this->options['text']) ? $this->options['text'] : t('edit');

  $this->options['alter']['make_link'] = TRUE;
  $this->options['alter']['path'] = 'admin/config/regional/translate/edit/' . $data;
  $this->options['alter']['query'] = backdrop_get_destination();

  return $text;
}