Manual:Hooks/SpecialPageBeforeFormDisplay
From Linux Web Expert
SpecialPageBeforeFormDisplay | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 141633)</tvar></translate> Before executing the HTMLForm object | |
<translate> Define function:</translate> | public static function onSpecialPageBeforeFormDisplay( $name, \HTMLForm &$form ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"SpecialPageBeforeFormDisplay": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialPageBeforeFormDisplay"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> FormSpecialPage.php |
<translate> Interface:</translate> | SpecialPageBeforeFormDisplayHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:SpecialPageBeforeFormDisplay extensions</tvar>.</translate>
Details
- string $name: name of the special page (without the 'Special:' namespace prefix)
- \HTMLForm &$form: HTMLForm object