From 653dded5fd2fd3058f11e61175050e1691d5dfa9 Mon Sep 17 00:00:00 2001
From: Koen Wouters <koen.wouters@maxserv.com>
Date: Fri, 21 Feb 2020 16:15:15 +0100
Subject: [PATCH] [TASK] Add documentation group Dashboard widgets

A widget group is added to the TYPO3 add widget modal with
all the documentation widgets

Resolves: #90457
Releases: master
Change-Id: I56afc843f1f1b3ab08d97213e68c0c7b862e17f8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63348
Tested-by: Daniel Siepmann <coding@daniel-siepmann.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Daniel Siepmann <coding@daniel-siepmann.de>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
---
 .../Configuration/Backend/DashboardWidgetGroups.php         | 3 +++
 typo3/sysext/dashboard/Configuration/Services.yaml          | 6 +++---
 .../dashboard/Resources/Private/Language/locallang.xlf      | 3 +++
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/typo3/sysext/dashboard/Configuration/Backend/DashboardWidgetGroups.php b/typo3/sysext/dashboard/Configuration/Backend/DashboardWidgetGroups.php
index e841fbabf2ee..4b98a20a266b 100644
--- a/typo3/sysext/dashboard/Configuration/Backend/DashboardWidgetGroups.php
+++ b/typo3/sysext/dashboard/Configuration/Backend/DashboardWidgetGroups.php
@@ -6,4 +6,7 @@ return [
     'typo3' => [
         'title' => 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:widget_group.typo3',
     ],
+    'documentation' => [
+        'title' => 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:widget_group.documentation',
+    ],
 ];
diff --git a/typo3/sysext/dashboard/Configuration/Services.yaml b/typo3/sysext/dashboard/Configuration/Services.yaml
index bd347009aa61..85501f81c125 100644
--- a/typo3/sysext/dashboard/Configuration/Services.yaml
+++ b/typo3/sysext/dashboard/Configuration/Services.yaml
@@ -21,21 +21,21 @@ services:
     tags:
       - name: dashboard.widget
         identifier: docGettingStarted
-        widgetGroups: 'typo3'
+        widgetGroups: 'documentation'
 
   TYPO3\CMS\Dashboard\Widgets\DocumentationTypoScriptReference:
     arguments: ['docTypoScriptReference']
     tags:
       - name: dashboard.widget
         identifier: docTypoScriptReference
-        widgetGroups: 'typo3'
+        widgetGroups: 'documentation'
 
   TYPO3\CMS\Dashboard\Widgets\DocumentationTSconfigReferenceWidget:
     arguments: ['docTSconfig']
     tags:
       - name: dashboard.widget
         identifier: docTSconfig
-        widgetGroups: 'typo3'
+        widgetGroups: 'documentation'
 
   TYPO3\CMS\Dashboard\Widgets\T3GeneralInformation:
     arguments: ['t3information']
diff --git a/typo3/sysext/dashboard/Resources/Private/Language/locallang.xlf b/typo3/sysext/dashboard/Resources/Private/Language/locallang.xlf
index 5b7bd21db11f..64f1c8313d74 100644
--- a/typo3/sysext/dashboard/Resources/Private/Language/locallang.xlf
+++ b/typo3/sysext/dashboard/Resources/Private/Language/locallang.xlf
@@ -141,6 +141,9 @@
 			<trans-unit id="widget_group.typo3" xml:space="preserve">
 				<source>TYPO3</source>
  			</trans-unit>
+			<trans-unit id="widget_group.documentation" xml:space="preserve">
+				<source>Documentation</source>
+ 			</trans-unit>
 
 			<trans-unit id="dashboard.empty.content.title" xml:space="preserve">
 				<source>No widgets</source>
-- 
GitLab