MediaWiki
master
GetSessionJwtDataHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use
MediaWiki\Session\SessionManager
;
6
use
MediaWiki\User\UserIdentity
;
7
15
interface
GetSessionJwtDataHook
{
16
41
public
function
onGetSessionJwtData
( ?
UserIdentity
$user, array &$jwtData ): void;
42
43
}
MediaWiki\Session\SessionManager
This serves as the entry point to the MediaWiki session handling system.
Definition
SessionManager.php:54
MediaWiki\Hook\GetSessionJwtDataHook
This is a hook handler interface, see docs/Hooks.md.
Definition
GetSessionJwtDataHook.php:15
MediaWiki\Hook\GetSessionJwtDataHook\onGetSessionJwtData
onGetSessionJwtData(?UserIdentity $user, array &$jwtData)
Called when a JWT session token is created, can modify the information stored within.
MediaWiki\User\UserIdentity
Interface for objects representing user identity.
Definition
UserIdentity.php:24
MediaWiki\Hook
Definition
AlternateEditHook.php:3
includes
Hook
GetSessionJwtDataHook.php
Generated on Wed Aug 12 2026 15:25:44 for MediaWiki by
1.10.0