Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\Hook;
4
5/**
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "isValidEmailAddr" to register handlers implementing this interface.
8 *
9 * @stable to implement
10 * @ingroup Hooks
11 */
12interface IsValidEmailAddrHook {
13    /**
14     * Use this hook to override the result of Sanitizer::validateEmail(), for
15     * instance to return false if the domain name doesn't match your organization.
16     *
17     * @since 1.35
18     *
19     * @param string $addr Email address entered by the user
20     * @param bool|null &$result Set this and return false to override the internal checks
21     * @return bool|void True or no return value to continue or false to abort
22     */
23    public function onIsValidEmailAddr( $addr, &$result );
24}