public function getRepeatable()
{
if (isset($this->element['legacy'])) {
return $this->getInput();
}
$class = $this->class ? $this->class : '';
$link_url = $this->element['url'];
if ($link_url && $this->item instanceof DataModel) {
$link_url = $this->parseFieldTags($link_url);
} else {
$link_url = false;
}
$html = '<span class="' . $this->id . ' ' . $class . '">';
if ($link_url) {
$html .= '<a href="' . $link_url . '">';
}
$html .= htmlspecialchars(self::getOptionName($this->getOptions(), $this->value), ENT_COMPAT, 'UTF-8');
if ($link_url) {
$html .= '</a>';
}
$html .= '</span>';
return $html;
}