2020-03-03 22:50:34 +00:00
|
|
|
<?php
|
|
|
|
|
|
2020-04-21 18:08:02 +00:00
|
|
|
namespace MediaWiki\ResourceLoader\Hook;
|
2020-03-03 22:50:34 +00:00
|
|
|
|
|
|
|
|
/**
|
2020-09-26 13:18:43 +00:00
|
|
|
* This is a hook handler interface, see docs/Hooks.md.
|
|
|
|
|
* Use the hook name "ResourceLoaderSiteModulePages" to register handlers implementing this interface.
|
|
|
|
|
*
|
2020-07-13 09:05:49 +00:00
|
|
|
* @stable to implement
|
2020-04-21 18:08:02 +00:00
|
|
|
* @ingroup ResourceLoaderHooks
|
2020-03-03 22:50:34 +00:00
|
|
|
*/
|
|
|
|
|
interface ResourceLoaderSiteModulePagesHook {
|
|
|
|
|
/**
|
2020-04-21 18:08:02 +00:00
|
|
|
* Change which wiki pages comprise the `site` module in given skin.
|
2020-03-03 22:50:34 +00:00
|
|
|
*
|
2020-04-21 18:08:02 +00:00
|
|
|
* This hook is called from ResourceLoaderSiteModule.
|
2020-03-03 22:50:34 +00:00
|
|
|
*
|
2020-04-21 18:08:02 +00:00
|
|
|
* @since 1.35
|
2020-03-16 23:31:05 +00:00
|
|
|
* @param string $skin Current skin key
|
|
|
|
|
* @param array &$pages Array of pages and their types
|
2020-06-30 21:18:44 +00:00
|
|
|
* @return void This hook must not abort, it must return no value
|
2020-03-03 22:50:34 +00:00
|
|
|
*/
|
2021-07-22 03:11:47 +00:00
|
|
|
public function onResourceLoaderSiteModulePages( $skin, array &$pages ): void;
|
2020-03-03 22:50:34 +00:00
|
|
|
}
|