Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6106887
UserGetDefaultOptionsHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
905 B
Referenced Files
None
Subscribers
None
UserGetDefaultOptionsHook.php
View Options
<?php
namespace
MediaWiki\User\Hook
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "UserGetDefaultOptions" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
UserGetDefaultOptionsHook
{
/**
* This hook is called after fetching core default user options but before returning the options
*
* Warning: This hook is called for every call to UserOptionsLookup::getDefaultOptions(), which means
* it's potentially called dozens or hundreds of times. You may want to cache the results
* of non-trivial operations in your hook function for this reason.
*
* @since 1.35
*
* @param array &$defaultOptions Array of preference keys and their default values.
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onUserGetDefaultOptions
(
&
$defaultOptions
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 6 2026, 14:10 (6 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1b/aa/4d341f734701d92fb40c11364a89
Default Alt Text
UserGetDefaultOptionsHook.php (905 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment