config = $config; } /** @inheritDoc */ public function onAbuseFilterCustomActions( array &$actions ): void { $enabledActions = $this->config->get( 'ConfirmEditEnabledAbuseFilterCustomActions' ); if ( in_array( 'showcaptcha', $enabledActions ) ) { $actions['showcaptcha'] = static function ( Parameters $params ): CaptchaConsequence { return new CaptchaConsequence( $params ); }; } } }