36 if (empty($installPaths)) {
39 $pathSelector =
'<ul class="is-hidden">';
40 foreach ($installPaths as $installPathType => $installPath) {
41 $pathSelector .=
'<li> 42 <input type="radio" id="' . htmlspecialchars($extension->getExtensionKey()) .
'-downloadPath-' . htmlspecialchars($installPathType) .
'" name="' . htmlspecialchars($this->
getFieldNamePrefix(
'downloadPath')) .
'[downloadPath]" class="downloadPath" value="' . htmlspecialchars($installPathType) .
'"' . ($installPathType ==
'Local' ?
' checked="checked"' :
'') .
'/> 43 <label for="' . htmlspecialchars($extension->getExtensionKey()) .
'-downloadPath-' . htmlspecialchars($installPathType) .
'">' . htmlspecialchars($installPathType) .
'</label> 46 $pathSelector .=
'</ul>';
47 $uriBuilder = $this->controllerContext->getUriBuilder();
48 $action =
'checkDependencies';
50 $uriBuilder->setFormat(
'json');
51 $uri = $uriBuilder->uriFor($action, array(
52 'extension' => (
int)$extension->getUid()
54 $this->tag->addAttribute(
'data-href', $uri);
57 $iconClasses =
"t3-icon t3-icon-actions t3-icon-system-extension-import";
60 $this->tag->setContent($label . $pathSelector);
61 $this->tag->addAttribute(
'class',
'download');
62 return '<div id="' . htmlspecialchars($extension->getExtensionKey()) .
'-downloadFromTer" class="downloadFromTer">' . $this->tag->render() .
'</div>';
render(\TYPO3\CMS\Extensionmanager\Domain\Model\Extension $extension)
static returnAllowedInstallPaths()
static translate($key, $extensionName, $arguments=NULL)