MediaWiki  master
MediaWiki\Hook\TitleArrayFromResultHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\TitleArrayFromResultHook:

Public Member Functions

 onTitleArrayFromResult (&$titleArray, $res)
 This hook is called when creating a TitleArray object from a database result. More...
 

Detailed Description

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

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

Stable to implement

Definition at line 15 of file TitleArrayFromResultHook.php.

Member Function Documentation

◆ onTitleArrayFromResult()

MediaWiki\Hook\TitleArrayFromResultHook::onTitleArrayFromResult ( $titleArray,
  $res 
)

This hook is called when creating a TitleArray object from a database result.

Since
1.35
Parameters
TitleArray&$titleArraySet this to an object to override the default object returned
IResultWrapper$resDatabase result used to create the object
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: