2 namespace TYPO3\CMS\Fluid\ViewHelpers\Link;
52 $this->
registerTagAttribute(
'rel',
'string',
'Specifies the relationship between the current document and the linked document');
53 $this->
registerTagAttribute(
'rev',
'string',
'Specifies the relationship between the linked document and the current document');
63 public function render($uri, $defaultScheme =
'http')
65 $scheme = parse_url($uri, PHP_URL_SCHEME);
66 if ($scheme === null && $defaultScheme !==
'') {
67 $uri = $defaultScheme .
'://' . $uri;
69 $this->tag->addAttribute(
'href', $uri);
71 $this->tag->forceClosingTag(
true);
73 return $this->tag->render();