| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\ResourceLoader\Hook; |
| 4 | |
| 5 | /** |
| 6 | * This is a hook handler interface, see docs/Hooks.md. |
| 7 | * Use the hook name "ResourceLoaderSiteStylesModulePages" to register handlers implementing this interface. |
| 8 | * |
| 9 | * @stable to implement |
| 10 | * @ingroup ResourceLoaderHooks |
| 11 | */ |
| 12 | interface ResourceLoaderSiteStylesModulePagesHook { |
| 13 | /** |
| 14 | * Change which wiki pages comprise the `site.styles` module in given skin. |
| 15 | * |
| 16 | * This hook is called from ResourceLoaderSiteStylesModule. |
| 17 | * |
| 18 | * @since 1.35 |
| 19 | * @param string $skin Current skin key |
| 20 | * @param array &$pages Array of pages and their types |
| 21 | * @return void This hook must not abort, it must return no value |
| 22 | */ |
| 23 | public function onResourceLoaderSiteStylesModulePages( $skin, array &$pages ): void; |
| 24 | } |