Page MenuHomeWickedGov Phorge

UserPromotedHook.php
No OneTemporary

Size
722 B
Referenced Files
None
Subscribers
None

UserPromotedHook.php

<?php
declare( strict_types = 1 );
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
namespace MediaWiki\Extension\Translate\TranslatorSandbox;
use MediaWiki\User\UserIdentity;
/**
* This is a hook handler interface, see docs/Hooks.md in core.
* Use the hook name "Translate:TranslatorSandbox:UserPromoted" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
* @author Niklas Laxström
* @license GPL-2.0-or-later
* @since 2023.03
*/
interface UserPromotedHook {
/** Event generated when an account inside the translator sandbox is approved. */
public function onTranslate_TranslatorSandbox_UserPromoted( UserIdentity $user ): void;
}

File Metadata

Mime Type
text/x-php
Expires
Oct 4 2026, 01:57 (4 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e1/1d/7c51fbbd002a98bb5df81161e498
Default Alt Text
UserPromotedHook.php (722 B)

Event Timeline