45 parent::initializeArguments();
46 $this->registerArgument(
'extensionKey',
'string',
'Extension key',
true);
56 $extensionKey = $this->arguments[
'extensionKey'];
60 $updateScriptUtility = $this->objectManager->get(\
TYPO3\CMS\Extensionmanager\Utility\UpdateScriptUtility::class);
62 $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
63 if ($updateScriptUtility->checkUpdateScriptExists($extensionKey)) {
64 $uriBuilder = $this->renderingContext->getControllerContext()->getUriBuilder();
66 $uri = $uriBuilder->reset()->uriFor(
68 [
'extensionKey' => $extensionKey],
71 $this->tag->addAttribute(
'href', $uri);
73 $this->tag->setContent($iconFactory->getIcon(
'actions-refresh',
Icon::SIZE_SMALL)->render());
74 $tag = $this->tag->render();
76 return '<span class="btn btn-default disabled">' . $iconFactory->getIcon(
'empty-empty',
Icon::SIZE_SMALL)->render() .
'</span>';