Page MenuHomeWickedGov Phorge

UserPrivilegedGroupsHook.php
No OneTemporary

Size
748 B
Referenced Files
None
Subscribers
None

UserPrivilegedGroupsHook.php

<?php
namespace MediaWiki\User\Hook;
use MediaWiki\User\UserIdentity;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "UserPrivilegedGroups" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface UserPrivilegedGroupsHook {
/**
* This hook is called in UserGroupManager::getUserPrivilegedGroups().
*
* @since 1.41 (also backported to 1.39.5 and 1.40.1)
*
* @param UserIdentity $userIdentity User identity to get groups for
* @param string[] &$groups Current privileged groups
* @return bool|void True or no return value to continue or false to abort
*/
public function onUserPrivilegedGroups( UserIdentity $userIdentity, array &$groups );
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 18:28 (3 h, 10 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7f/d2/c58d68e92a93eae4752360968090
Default Alt Text
UserPrivilegedGroupsHook.php (748 B)

Event Timeline