Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
UserMergeHooks
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 onUserMergeAccountFields
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace MediaWiki\Extension\GlobalBlocking;
4
5use MediaWiki\Extension\UserMerge\Hooks\AccountFieldsHook;
6
7/**
8 * MediaWiki hook handlers for the GlobalBlocking extension
9 * All hooks from the UserMerge extension which is optional to use with this extension.
10 *
11 * @license GPL-2.0-or-later
12 */
13class UserMergeHooks implements
14    AccountFieldsHook
15{
16    /**
17     * @param array &$updateFields
18     */
19    public function onUserMergeAccountFields( array &$updateFields ): void {
20        $updateFields[] = [ 'global_block_whitelist', 'gbw_by', 'gbw_by_text' ];
21    }
22}