public function build()
{
$domains = $this->arguments['domains'];
if (false === is_array($domains)) {
$domains = GeneralUtility::trimExplode(',', $domains, true);
}
$headerCode = '';
if (true === (bool) $this->arguments['force']) {
$headerCode .= '<meta http-equiv="x-dns-prefetch-control" content="off">' . LF;
}
foreach ($domains as $domain) {
$this->tagBuilder->removeAttribute('href');
$this->tagBuilder->addAttribute('href', $this->arguments['protocol'] . $this->arguments['protocolSeparator'] . $domain);
$headerCode .= $this->tagBuilder->render() . LF;
}
return $headerCode;
}