class) ? ' class="'.$this->class.'"' : '';
$html[] = '
';
// Get the label text from the XML element, defaulting to the element name.
$text = $this->element['label'] ? (string) $this->element['label'] : (string) $this->element['name'];
$text = $this->translateLabel ? JText::_($text) : $text;
$html[] = $text;
$html[] = '
';
// If a description is specified, use it to build a tooltip.
if (!empty($this->description)) {
$html[] = ''.JText::_($this->description).'';
}
return implode('', $html);
}
/**
* Method to get the field title.
*
* @return string The field title
*
* @since 11.1
*/
protected function getTitle()
{
return $this->getLabel();
}
}