wiki.techinc.nl/includes/user/Hook/UserSetEmailAuthenticationTimestampHook.php
DannyS712 493e2de56d user/Hook: Hook interface doc comment review
Review hooks in includes/user/Hook

Bug: T246855
Change-Id: I0c56b6f2b73dec5491ff81619a2f7bce6c8bebad
2020-04-22 03:36:44 +00:00

23 lines
580 B
PHP

<?php
namespace MediaWiki\User\Hook;
use User;
/**
* @stable for implementation
* @ingroup Hooks
*/
interface UserSetEmailAuthenticationTimestampHook {
/**
* This hook is called when setting the timestamp of a User's email authentication.
*
* @since 1.35
*
* @param User $user User object
* @param ?string &$timestamp new timestamp, change this to override local email
* authentication timestamp
* @return bool|void True or no return value to continue or false to abort
*/
public function onUserSetEmailAuthenticationTimestamp( $user, &$timestamp );
}