Manual:Hooks/TitleArrayFromResult
Appearance
This feature was removed completely in version 1.37.0 (after being deprecated in 1.36.0). |
TitleArrayFromResult | |
---|---|
Available from version 1.14.0 Removed in version 1.37.0 (Gerrit change 697808) Called when creating an TitleArray object from a database result. | |
Define function: | public static function onTitleArrayFromResult( &$titleArray, $res ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"TitleArrayFromResult": "MediaWiki\\Extension\\MyExtension\\Hooks::onTitleArrayFromResult"
}
}
|
Called from: | File(s): TitleArray.php |
Interface: | TitleArrayFromResultHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:TitleArrayFromResult extensions.
Details
[edit]- &$titleArray: set this to an object to override the default object returned
- $res: database result used to create the object