30 public function render(\
TYPO3\CMS\Documentation\Domain\Model\DocumentTranslation $documentTranslation) {
32 foreach ($documentTranslation->getFormats() as $format) {
36 $uri =
'../' . $format->getPath();
37 $extension = substr($uri, strrpos($uri,
'.') + 1);
38 if (strlen($extension) < 5) {
40 $output .=
'href="' . $uri .
'"';
42 $extension = $format->getFormat();
43 if ($extension ===
'json') {
46 $output .=
'href="#" onclick="top.TYPO3.Backend.ContentContainer.setUrl(\'' . $uri .
'\')
"'; 49 $xliff = 'LLL:EXT:documentation/Resources/Private/Language/locallang.xlf'; 51 $GLOBALS['LANG']->sL($xliff . ':tx_documentation_domain_model_documentformat.format.title'), 54 $output .= ' title="' . htmlspecialchars($title) . '">'; 55 $spriteIconHtml = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForFile($extension); 56 $output .= $spriteIconHtml . '</a>' . LF;