< Extension:WikimediaEvents < Hooks
WikimediaEventsShouldSchemaEditAttemptStepOversample | |
---|---|
Available from version 1.35.0 (Gerrit change 550743) Decide whether oversampling should be enabled for the EditAttemptStep schema. |
|
Define function: | public static function onWikimediaEventsShouldSchemaEditAttemptStepOversample( IContextSource $context, bool &$shouldOversample ) { ... }
|
Attach hook: | $wgHooks['WikimediaEventsShouldSchemaEditAttemptStepOversample'][] = 'MyExtensionHooks::onWikimediaEventsShouldSchemaEditAttemptStepOversample';
|
Called from: | File(s): WikimediaEvents / includes/WikimediaEventsHooks.php Function(s): shouldSchemaEditAttemptStepOversample |
For more information about attaching hooks, see Manual:Hooks
For examples of other extensions using this hook, see Category:WikimediaEventsShouldSchemaEditAttemptStepOversample extensions.
Parameters
$context
: An instance ofIContextSource
&$shouldOversample
: Abool
representing whether the current event should be logged with probability 1 (as opposed to the normal sampling probability).
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.