ModuleRegistry

FinalYes
Internal

Always use the ModuleProvider API to access modules

Table of Contents

Methods

__construct()  : mixed
getModule()  : ModuleInterface
getModuleAliases()  : array<string|int, mixed>
getModules()  : array<string|int, ModuleInterface>
hasModule()  : bool
registerRoutesForModules()  : void
Handle router configuration when the router is set up.

Methods

getModuleAliases()

public getModuleAliases() : array<string|int, mixed>
Return values
array<string|int, mixed>

hasModule()

public hasModule(string $identifier) : bool
Parameters
$identifier : string
Return values
bool

registerRoutesForModules()

Handle router configuration when the router is set up.

public registerRoutesForModules(RouterConfigurationEvent $event) : void

The event registration is wired in TYPO3\CMS\Backend\ServiceProvider::addEventListeners instead of using an AsEventListener because this service is not autowired, but has a custom factory in TYPO3\CMS\Backend\ServiceProvider.

Parameters
$event : RouterConfigurationEvent

        
On this page

Search results