TYPO3 CMS  TYPO3_6-2
ShowExtensionVersionsViewHelper.php
Go to the documentation of this file.
1 <?php
3 
22 
26  protected $tagName = 'a';
27 
34  public function render($extension) {
35  $uriBuilder = $this->controllerContext->getUriBuilder();
36  $action = 'showAllVersions';
37  $uri = $uriBuilder->reset()->uriFor($action, array(
38  'extensionKey' => $extension->getExtensionKey(),
39  ), 'List');
40  $this->tag->addAttribute('href', $uri);
41 
42  // Set class
43  $this->tag->addAttribute('class', 'versions-all ui-icon ui-icon-triangle-1-s');
44 
45  $label = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('extensionList.showAllVersions.label', 'extensionmanager');
46  $this->tag->addAttribute('title', $label);
47  $this->tag->setContent($label);
48  return $this->tag->render();
49  }
50 
51 }
static translate($key, $extensionName, $arguments=NULL)