registerArgument('extension', Extension::class, '', true); } /** * Renders an install link * * @return string the rendered a tag */ public function render() { /** @var Extension $extension */ $extension = $this->arguments['extension']; $uriBuilder = $this->renderingContext->getControllerContext()->getUriBuilder(); $action = 'showAllVersions'; $uri = $uriBuilder->reset()->uriFor($action, [ 'extensionKey' => $extension->getExtensionKey(), ], 'List'); $this->tag->addAttribute('href', $uri); // Set class $this->tag->addAttribute('class', 'versions-all ui-icon ui-icon-triangle-1-s'); $label = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('extensionList.showAllVersions.label', 'extensionmanager'); $this->tag->addAttribute('title', $label); $this->tag->setContent($label); return $this->tag->render(); } }