‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Module\ModuleFactory Class Reference

Public Member Functions

 __construct (protected readonly IconRegistry $iconRegistry, protected readonly EventDispatcherInterface $eventDispatcher,)
 createModule (string $identifier, array $configuration)
 adaptAliasMappingFromModuleConfiguration (array $moduleConfigurations)

Private Member Functions

 sanitizeConfiguration (string $identifier, array $configuration)

Detailed Description

only to be used within TYPO3 Core

Definition at line 28 of file ModuleFactory.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Module\ModuleFactory::__construct ( protected readonly IconRegistry  $iconRegistry,
protected readonly EventDispatcherInterface  $eventDispatcher 

Definition at line 30 of file ModuleFactory.php.

Member Function Documentation

◆ adaptAliasMappingFromModuleConfiguration()

TYPO3\CMS\Backend\Module\ModuleFactory::adaptAliasMappingFromModuleConfiguration ( array  $moduleConfigurations)

In order to keep modules that reference to an alias (e.g. switch of main module form "web" to "content"), the modules need to be re-located to reference the "new" identifier and not the now available alias. This concerns "parent" and the "position" options, which reference other module identifiers.

Definition at line 76 of file ModuleFactory.php.

◆ createModule()

◆ sanitizeConfiguration()

TYPO3\CMS\Backend\Module\ModuleFactory::sanitizeConfiguration ( string  $identifier,
array  $configuration