From d05f02aa81be171b179a033229e7a6a255d68a8d Mon Sep 17 00:00:00 2001
From: Bingquan Bao <noreply@example.com>
Date: Fri, 14 Jun 2024 06:20:47 +0000
Subject: [PATCH] [DOCS] Properly document modulename registration for
 EXT:adminpanel

The documentation contained a wrong registration code example,
which now uses the proper array depth level notation.

Releases: main, 12.4, 11.5
Resolves: #104105
Change-Id: Idb3c9b0e723af2f1bb579bc304637497e1272e36
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84645
Tested-by: core-ci <typo3@b13.com>
Tested-by: Lina Wolf <112@linawolf.de>
Reviewed-by: Lina Wolf <112@linawolf.de>
---
 typo3/sysext/adminpanel/Documentation/Extending/Index.rst | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/typo3/sysext/adminpanel/Documentation/Extending/Index.rst b/typo3/sysext/adminpanel/Documentation/Extending/Index.rst
index 2055893c8767..02976d9918b7 100644
--- a/typo3/sysext/adminpanel/Documentation/Extending/Index.rst
+++ b/typo3/sysext/adminpanel/Documentation/Extending/Index.rst
@@ -44,10 +44,8 @@ To create your own Admin Panel module
    .. code-block:: php
 
       $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']['mynamespace_modulename'] = [
-          'module' => [
-              \Your\Namespace\Adminpanel\Modules\YourModule::class,
-              'before' => ['cache'],
-          ]
+          'module' =>  \Your\Namespace\Adminpanel\Modules\YourModule::class,
+          'before' => ['cache'],
       ];
 
 Using `before` or `after` you can influence where your module will be
-- 
GitLab