private function appendElement($key, Segment $segment, $properties)
{
$result = '';
// ignore separator after the last element
if ($key > 0) {
$result .= $this->separator;
}
if ($segment->get('disabled')) {
$result .= $this->getInactiveElementByFieldName($segment->get('raw'), $this->casing, $this->properties($properties));
} else {
if (is_null($segment->get('link'))) {
$result .= $this->getInactiveElementByFieldName($segment->get('translated'), $this->casing, $this->properties($properties));
} else {
$result .= '<a href="' . $segment->get('link') . '" ' . $this->properties($properties) . '>' . $this->casing($segment->get('translated'), $this->casing) . '</a>';
}
}
return $result;
}