Jump to content

Extension:CommunityConfiguration/Hooks/CommunityConfigurationSchemaBeforeEditorHook

From mediawiki.org
CommunityConfigurationSchemaBeforeEditorHook
Available from version 1.43.0-wmf.10
Use this hook to modify a provider defined schema before rendering the associated editor form
Define function:
public static function onCommunityConfigurationSchemaBeforeEditorHook( IConfigurationProvider $provider, array &$rootSchema ) { ... }
Attach hook:
$wgHooks['CommunityConfigurationSchemaBeforeEditorHook'][] = 'MyExtensionHooks::onCommunityConfigurationSchemaBeforeEditorHook';
Called from:File(s): CommunityConfiguration / EditorCapabilities/GenericFormEditorCapability.php

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

Details

[edit]
  • IConfigurationProvider The current provider being evaluated.
  • &$rootSchema: An associative array representing the JSON-schema associated to the provider.