Extension:CommunityConfiguration/Hooks/CommunityConfigurationProvider initListHook
Appearance
CommunityConfigurationProvider_initListHook | |
---|---|
Available from version 1.43.0-wmf.13 Use this hook to remove a registered provider in extension.json or conditionally register providers. |
|
Define function: | public static function onCommunityConfigurationProvider_initListHook( array &$providers ) { ... }
|
Attach hook: | $wgHooks['CommunityConfigurationProvider_initListHook'][] = 'MyExtensionHooks::onCommunityConfigurationProvider_initListHook';
|
Called from: | File(s): CommunityConfiguration / ConfigurationProviderFactory.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:CommunityConfigurationProvider_initListHook extensions.
Details
[edit]&$providers
: An associativearray
, where the key is a provider id as registered inextension.json
or through$wgCommunityConfigurationProviders
, and the corresponding value is the provider definition.