2 namespace TYPO3\CMS\Documentation\Slots;
55 public function processActions(array $extension, array &$actions)
57 if (static::$documents === null) {
59 $documentController = $this->objectManager->get(\TYPO3\CMS\Documentation\Controller\DocumentController::class);
60 static::$documents = $documentController->getDocuments();
63 $extensionKey = $extension[
'key'];
64 $documentKey =
'typo3cms.extensions.' . $extensionKey;
66 if (isset(static::$documents[$documentKey])) {
67 $document = static::$documents[$documentKey];
69 foreach ($document->getTranslations() as $documentTranslation) {
72 'documentTranslation' => $documentTranslation,
75 new RenderingContext()
80 $emptyIcon = $iconFactory->getIcon(
'empty-empty',
Icon::SIZE_SMALL)->render();
81 $actions[] =
'<span class="btn btn-default disabled">' . $emptyIcon .
'</span>';
82 $actions[] =
'<span class="btn btn-default disabled">' . $emptyIcon .
'</span>';
83 $actions[] =
'<span class="btn btn-default disabled">' . $emptyIcon .
'</span>';