2 namespace TYPO3\CMS\Extensionmanager\ViewHelpers;
41 if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded($extension[
'key'])) {
42 return '<span class="btn btn-default disabled">' . $iconFactory->getIcon(
'empty-empty',
Icon::SIZE_SMALL)->render() .
'</span>';
46 $extension[
'type'] ===
'System'
48 return '<span class="btn btn-default disabled">' . $iconFactory->getIcon(
'empty-empty',
Icon::SIZE_SMALL)->render() .
'</span>';
50 $uriBuilder = $this->controllerContext->getUriBuilder();
51 $action =
'removeExtension';
53 $uriBuilder->setFormat(
'json');
54 $uri = $uriBuilder->uriFor($action, array(
55 'extension' => $extension[
'key']
57 $this->tag->addAttribute(
'href', $uri);
58 $cssClass =
'removeExtension btn btn-default';
59 $this->tag->addAttribute(
'class', $cssClass);
61 $this->tag->setContent($iconFactory->getIcon(
'actions-edit-delete',
Icon::SIZE_SMALL)->render());
62 return $this->tag->render();