See documentation * * Output:: * * * See documentation * * * @see https://docs.typo3.org/permalink/t3viewhelper:typo3-backend-link-documentation * @internal not part of TYPO3 Core API. */ final class DocumentationViewHelper extends AbstractTagBasedViewHelper { protected $tagName = 'a'; public function initializeArguments(): void { parent::initializeArguments(); $this->registerArgument('identifier', 'string', 'the documentation permalink identifier as displayed in the modal link popup of any rendered documentation manual', true); } /** * @throws \InvalidArgumentException */ public function render(): string { // Note: This ViewHelper cannot use DI, because it is used in the Install-Tool context where constructor-based DI does not work. // Typo3Information is a simple DO so we do not need to utilize makeInstance() here. $this->tag->addAttribute('href', Typo3Information::getDocsLink($this->arguments['identifier'])); $this->tag->addAttribute('target', '_blank'); $this->tag->addAttribute('rel', 'noreferrer'); $this->tag->setContent($this->renderChildren()); $this->tag->forceClosingTag(true); return $this->tag->render(); } }