ModuleRegistry
class ModuleRegistry (View source)
Loads the modules listed in the manifest and answers which are enabled for the current user.
Provides aggregated routes, navigation, and capabilities of the enabled modules.
Methods
No description
Load and initialize all registered modules.
No description
Get aggregated route definitions from all enabled modules.
Get aggregated navigation items from all enabled modules.
Get aggregated capability data from all enabled modules.
Details
__construct(ConfigurationInterface $config, array $moduleClasses = ModuleManifest::MODULES)
No description
void
loadModules()
Load and initialize all registered modules.
Checks configuration to determine which modules are enabled.
array
getEnabledModules()
No description
array
getRoutes()
Get aggregated route definitions from all enabled modules.
array
getNavItems(bool $isAdmin = false)
Get aggregated navigation items from all enabled modules.
array
getCapabilityData(string $capability, array $context = [], bool $isAdmin = false)
Get aggregated capability data from all enabled modules.