extensionService = $extensionService;
}
/**
* Initialize arguments.
*/
public function initializeArguments()
{
parent::initializeArguments();
$this->registerArgument('extension', Extension::class, '', true);
$this->registerTagAttribute('enctype', 'string', 'MIME type with which the form is submitted');
$this->registerTagAttribute('method', 'string', 'Transfer type (GET or POST)');
$this->registerTagAttribute('name', 'string', 'Name of form');
$this->registerTagAttribute('onreset', 'string', 'JavaScript: On reset of the form');
$this->registerTagAttribute('onsubmit', 'string', 'JavaScript: On submit of the form');
$this->registerUniversalTagAttributes();
}
/**
* Renders a download link
*
* @return string the rendered a tag
*/
public function render()
{
/** @var Extension $extension */
$extension = $this->arguments['extension'];
$installPaths = Extension::returnAllowedInstallPaths();
if (empty($installPaths)) {
return '';
}
$pathSelector = '