2 namespace TYPO3\CMS\Extensionmanager\ViewHelpers;
51 public function render($extensionKey)
57 $updateScriptUtility = $this->objectManager->get(\TYPO3\CMS\Extensionmanager\Utility\UpdateScriptUtility::class);
60 if ($updateScriptUtility->checkUpdateScriptExists($extensionKey)) {
61 $uriBuilder = $this->controllerContext->getUriBuilder();
63 $uri = $uriBuilder->reset()->uriFor(
65 array(
'extensionKey' => $extensionKey),
68 $this->tag->addAttribute(
'href', $uri);
70 $this->tag->setContent($iconFactory->getIcon(
'extensions-extensionmanager-update-script',
Icon::SIZE_SMALL)->render());
71 $tag = $this->tag->render();
73 return '<span class="btn btn-default disabled">' . $iconFactory->getIcon(
'empty-empty',
Icon::SIZE_SMALL)->render() .
'</span>';