Extension:BetaFeatures/Hooks/GetBetaFeatureDependencyHooks
(Redirected from Manual:Hooks/GetBetaFeatureDependencyHooks)
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
edit&$depHooks
: Anarray
, 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 adependent
attribute set totrue
(see GetBetaFeaturePreferences hook). The functions to be further executed by this new hook have to be registered with $wgHooks .