< Extension:BetaFeatures < Hooks 
 
      | 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- dependentattribute set to- true(see GetBetaFeaturePreferences hook). The functions to be further executed by this new hook have to be registered with $wgHooks.
See also
- Extension:BetaFeatures
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.