Summary
- In order to handle the risk score information passed by the frontend after encountering a hook, we need to define a new hook type to be implemented in MediaWiki-extensions-WikimediaEvents.
- Doing so alows ConfirmEdit (CAPTCHA extension) to call the existing CaptchaScoreHooks class for submitting the new risk score information.
- This follows the existing approach for passing risk score information from ConfirmEdit to WikimediaEvents.
Acceptance Criteria:
- A ConfirmEditHCaptchaRiskScoreRetrievedForBlocksHook interface is defined in ConfirmEdit, with onConfirmEditHCaptchaRiskScoreRetrievedForBlocks( float $riskScore, int[] $blockIds, UserIdentity $user, WebRequest $request ) as its contract
- The exiting HookRunner class implements the interface and dispatches the hook