Extension:BetaFeatures/Hooks/GetBetaFeatureDependencyHooks

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
GetBetaFeatureDependencyHooks
Available from version 1.22.0
Register dependency hooks which will be further executed for certain beta features. Only available with Extension:BetaFeatures.
Define function:
public static function onGetBetaFeatureDependencyHooks( array &$depHooks ) { ... }
Attach hook:
$wgHooks['GetBetaFeatureDependencyHooks'][] = 'MyExtensionHooks::onGetBetaFeatureDependencyHooks';
Called from:File(s): BetaFeatures / BetaFeaturesHooks.php

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:GetBetaFeatureDependencyHooks extensions.

Details

  • &$depHooks: An array, a key is a specific beta features identifiers and the corresponding value is the name of the hook which will be further executed if the feature has a dependent attribute set to true (see GetBetaFeaturePreferences hook). The functions to be further executed by this new hook have to be registered with $wgHooks .

See also