2 namespace TYPO3\CMS\Extensionmanager\ViewHelpers;
38 public function render($extension)
43 $filePrefix = PATH_site . $extension[
'siteRelPath'];
44 if (!file_exists(($filePrefix .
'ext_tables.sql')) && !file_exists(($filePrefix .
'ext_tables_static+adt.sql'))) {
45 return '<span class="btn btn-default disabled">' . $iconFactory->getIcon(
'empty-empty',
Icon::SIZE_SMALL)->render() .
'</span>';
47 $uriBuilder = $this->controllerContext->getUriBuilder();
49 $uri = $uriBuilder->uriFor(
'downloadExtensionData', array(
50 'extension' => $extension[
'key']
52 $this->tag->addAttribute(
'href', $uri);
53 $cssClass =
'downloadExtensionData btn btn-default';
54 $this->tag->addAttribute(
'class', $cssClass);
56 $this->tag->setContent($iconFactory->getIcon(
'actions-system-extension-sqldump',
Icon::SIZE_SMALL)->render());
57 return $this->tag->render();