MediaWiki  master
MediaWiki\Session\Hook\SessionMetadataHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Session\Hook\SessionMetadataHook:

Public Member Functions

 onSessionMetadata ( $backend, &$metadata, $requests)
 Use this hook to add metadata to a session being saved. More...

Detailed Description

Stable to implement.

Definition at line 12 of file SessionMetadataHook.php.

Member Function Documentation

◆ onSessionMetadata()

MediaWiki\Session\Hook\SessionMetadataHook::onSessionMetadata (   $backend,

Use this hook to add metadata to a session being saved.

SessionBackend$backendMediaWiki\Session\SessionBackend being saved
array&$metadataMetadata to be stored. Add new keys here.
WebRequest[]$requestsArray of WebRequests potentially being saved to. Generally 0-1 real request and 0+ FauxRequests.
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.

The documentation for this interface was generated from the following file: