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. Another is registering a resource with "soft" dependencies on other extensions and classes. For a single registration:

Instead of a ResourceLoaderFileModule you can pass in an array of 'script', 'styles', 'localBasePath', etc. as you do when appending an item to $wgResourceModules.

For multiple registrations: