MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onSessionMetadata ( $backend, &$metadata, $requests) | |
Use this hook to add metadata to a session being saved. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "SessionMetadata" to register handlers implementing this interface.
Definition at line 15 of file SessionMetadataHook.php.
MediaWiki\Session\Hook\SessionMetadataHook::onSessionMetadata | ( | $backend, | |
& | $metadata, | ||
$requests ) |
Use this hook to add metadata to a session being saved.
SessionBackend | $backend | MediaWiki\Session\SessionBackend being saved |
array | &$metadata | Metadata to be stored. Add new keys here. |
WebRequest[] | $requests | Array of WebRequests potentially being saved to. Generally 0-1 real request and 0+ FauxRequests. |
Implemented in MediaWiki\HookContainer\HookRunner.