Debian Codegraph @

includes/parser/Hook/IsValidEmailAddrHook.php

raw symbols SCIP
1 <?php
2
3 namespace 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 */
12 interface 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 }