MediaWiki master
MediaWiki\Output\Hook\GetCacheVaryCookiesHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onGetCacheVaryCookies ( $out, &$cookies)
 Use this hook to get cookies that should vary cache options.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "GetCacheVaryCookies" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file GetCacheVaryCookiesHook.php.

Member Function Documentation

◆ onGetCacheVaryCookies()

MediaWiki\Output\Hook\GetCacheVaryCookiesHook::onGetCacheVaryCookies ( $out,
& $cookies )

Use this hook to get cookies that should vary cache options.

Since
1.35
Parameters
OutputPage$out
string[]&$cookiesArray of cookie names. Add a value to it if you want to add a cookie that has to vary cache options.
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: