wiki.techinc.nl/includes/user/Hook/UserPrivilegedGroupsHook.php
Reedy bd193d3ac6 UserGroupManager: Fixup getUserPrivilegedGroups docs
Also update @since for backports

Bug: T208477
Follows-Up: I6536ef2909caeed047447e8b6a25831d6f00d827
Change-Id: I53f6df11cb0f9aa98e6df29530417583cf9a9e0b
2023-09-04 18:10:49 +01:00

25 lines
748 B
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 );
}