You are here

public function views_xml_backend_handler_field::ui_name in Views XML Backend 7

Same name and namespace in other branches
  1. 6 handlers/views_xml_backend_handler_field.inc \views_xml_backend_handler_field::ui_name()

Return a string representing this handler's name in the UI.

Overrides views_handler_field::ui_name

File

handlers/views_xml_backend_handler_field.inc, line 117
Contains views_xml_backend_handler_field.

Class

views_xml_backend_handler_field
Base field handler for views_xml_backend.

Code

public function ui_name($short = FALSE) {
  if (!empty($this->options['ui_name'])) {
    $title = check_plain($this->options['ui_name']);
    return $title;
  }
  $title = $this->definition['title'];
  if ($short && isset($this->definition['title short'])) {
    $title = $this->definition['title short'];
  }
  return t('!xpath: !title', array(
    '!xpath' => $this->options['xpath_selector'],
    '!title' => $title,
  ));
}