ModuleFactory

Internal

only to be used within TYPO3 Core

Table of Contents

Properties

$eventDispatcher  : EventDispatcherInterface
$iconRegistry  : IconRegistry

Methods

__construct()  : mixed
adaptAliasMappingFromModuleConfiguration()  : array<string|int, mixed>
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<string|int, mixed> $moduleConfigurations) : array<string|int, mixed>
Parameters
$moduleConfigurations : array<string|int, mixed>
Return values
array<string|int, mixed>

createModule()

public createModule(string $identifier, array<string|int, mixed> $configuration) : ModuleInterface
Parameters
$identifier : string
$configuration : array<string|int, mixed>
Return values
ModuleInterface

        
On this page

Search results