MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onSpecialRandomGetRandomTitle (&$randstr, &$isRedir, &$namespaces, &$extra, &$title) | |
This hook is called during the execution of Special:Random,. | |
Stable to implement.
Definition at line 11 of file SpecialRandomGetRandomTitleHook.php.
MediaWiki\Hook\SpecialRandomGetRandomTitleHook::onSpecialRandomGetRandomTitle | ( | & | $randstr, |
& | $isRedir, | ||
& | $namespaces, | ||
& | $extra, | ||
& | $title | ||
) |
This hook is called during the execution of Special:Random,.
Use this to change some selection criteria or substitute a different title.
string | &$randstr | The random number from wfRandom() |
bool | &$isRedir | Boolean, whether to select a redirect or non-redirect |
int[] | &$namespaces | An array of namespace indexes to get the title from |
array | &$extra | An array of extra SQL statements |
Title | &$title | If the hook returns false, a Title object to use instead of the result from the normal query |
Implemented in MediaWiki\HookContainer\HookRunner.