42 public function processActions(array $extension, array &$actions) {
43 if (static::$documents === NULL) {
45 $documentController = $this->objectManager->get(
'TYPO3\\CMS\\Documentation\\Controller\\DocumentController');
46 static::$documents = $documentController->getDocuments();
49 $extensionKey = $extension[
'key'];
50 $documentKey =
'typo3cms.extensions.' . $extensionKey;
52 if (isset(static::$documents[$documentKey])) {
53 $document = static::$documents[$documentKey];
56 $formatsViewHelper = $this->objectManager->get(
'TYPO3\\CMS\\Documentation\\ViewHelpers\\FormatsViewHelper');
58 foreach ($document->getTranslations() as $documentTranslation) {
59 $actions[] = $formatsViewHelper->render($documentTranslation);