MediaWiki REL1_35
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.
 

Detailed Description

Stable to implement.

Definition at line 12 of file SessionMetadataHook.php.

Member Function Documentation

◆ onSessionMetadata()

MediaWiki\Session\Hook\SessionMetadataHook::onSessionMetadata (   $backend,
$metadata,
  $requests 
)

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

Since
1.35
Parameters
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.
Returns
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: