| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\ResourceLoader\Hook; |
| 4 | |
| 5 | use MediaWiki\ResourceLoader\ResourceLoader; |
| 6 | |
| 7 | /** |
| 8 | * This is a hook handler interface, see docs/Hooks.md. |
| 9 | * Use the hook name "ResourceLoaderRegisterModules" to register handlers implementing this interface. |
| 10 | * |
| 11 | * @stable to implement |
| 12 | * @ingroup ResourceLoaderHooks |
| 13 | */ |
| 14 | interface ResourceLoaderRegisterModulesHook { |
| 15 | /** |
| 16 | * This hook is called right before modules information is required, |
| 17 | * such as when responding to a resource |
| 18 | * loader request or generating HTML output. |
| 19 | * |
| 20 | * @since 1.35 |
| 21 | * @param ResourceLoader $rl |
| 22 | * @return void This hook must not abort, it must return no value |
| 23 | */ |
| 24 | public function onResourceLoaderRegisterModules( ResourceLoader $rl ): void; |
| 25 | } |