Manual:Hooks/ResourceLoaderRegisterModules

Details

 * &$resourceLoader - The ResourceLoader object.

Usage
ResourceLoaderModule objects which provide access to scripts, styles, and messages can be added to the ResourceLoader at this point. The most common use-case is adding a ResourceLoaderFileModule which maps resource files to a module name.

For a single registration:

For multiple registrations: