ModuleFactory

class \TYPO3\CMS\Backend\Module\ModuleFactory

Table of Contents

Properties

$eventDispatcher  : EventDispatcherInterface
$iconRegistry  : IconRegistry

Methods

__construct()  : mixed
adaptAliasMappingFromModuleConfiguration()  : array
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.
createModule()  : ModuleInterface

Properties

$eventDispatcher read-only

protected EventDispatcherInterface $eventDispatcher

Methods

__construct()

public __construct(IconRegistry $iconRegistry, EventDispatcherInterface $eventDispatcher) : mixed

Parameters

$iconRegistry : IconRegistry
$eventDispatcher : EventDispatcherInterface

adaptAliasMappingFromModuleConfiguration()

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.

public adaptAliasMappingFromModuleConfiguration(array $moduleConfigurations) : array

Parameters

$moduleConfigurations : array

Return values

array
On this page