private function appendElement(Segment $segment)
{
$result = '';
if ($segment->get('disabled')) {
$result .= $this->getInactiveElementByFieldName($segment->get('raw'), $this->casing);
} else {
if (is_null($segment->get('link'))) {
$result .= $this->getInactiveElementByFieldName($segment->get('translated'), $this->casing, 'current');
} else {
$result .= '<li><a href="' . $segment->get('link') . '">' . $this->casing($segment->get('translated'), $this->casing) . '</a></li>';
}
}
return $result;
}