Follows-up f5aaf75ad1.
* Improve some docs for these hooks.
* Add type hints.
* Add them as a subgroup within the ResourceLoader docgroup
for easy navigation.
Bug: T246855
Change-Id: I52f31e2b63dcf265b27e68ba8fd4f885d82088ac
21 lines
598 B
PHP
21 lines
598 B
PHP
<?php
|
|
|
|
namespace MediaWiki\ResourceLoader\Hook;
|
|
|
|
/**
|
|
* @stable for implementation
|
|
* @ingroup ResourceLoaderHooks
|
|
*/
|
|
interface ResourceLoaderSiteStylesModulePagesHook {
|
|
/**
|
|
* Change which wiki pages comprise the `site.styles` module in given skin.
|
|
*
|
|
* This hook is called from ResourceLoaderSiteStylesModule.
|
|
*
|
|
* @since 1.35
|
|
* @param string $skin Current skin key
|
|
* @param array &$pages Array of pages and their types
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onResourceLoaderSiteStylesModulePages( $skin, array &$pages );
|
|
}
|