';
$headElement = $element->getElement('headElement');
if ($headElement !== null) {
$htmlOutput .='
';
$htmlOutput .= (string) $headElement;
$htmlOutput .= '
' . "\n";
$htmlOutput .= '
' . "\n";
}
$displayGroups = $element->getDisplayGroups();
foreach (array_keys($displayGroups) as $displayGroupKey) {
$htmlOutput .= (string) $displayGroups[$displayGroupKey];
}
$htmlOutput .= '
';
$separator = $this->getSeparator();
$placement = $this->getPlacement();
switch ($placement) {
case (self::PREPEND):
return $htmlOutput . $separator . $content;
case (self::APPEND):
default:
return $content . $separator . $htmlOutput;
}
return $htmlOutput;
}
}