Register a toplevel module (Extbase)

This page describes how to register a toplevel menu with extbase.

Toplevel modules like "Web" or "File" are registered with the same A

ext_tables.php:

EXT:my_extension/ext_tables.php
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
    'MyExtension',
    'mysection',
    '',
    '',
    [],
    [
        'access' => '...',
        'iconIdentifier' => '...',
        'labels' => '...',
    ]
);
Copied!

This adds a new toplevel module mysection. This identifier can now be used to add submodules to this new toplevel module:

EXT:my_extension/ext_tables.php
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
    'MyExtension',
    'mymodule1',
    'mysection',
    '',
    [],
    [
        'access' => '...',
        'labels' => '...'
    ]
);
Copied!