Manual:Hooks/ProtectionForm::showLogExtract
From Linux Web Expert
ProtectionForm::showLogExtract | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> Called after the protection log extract is shown. | |
<translate> Define function:</translate> | public static function onProtectionForm_showLogExtract( $article, $out ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"ProtectionForm::showLogExtract": "MediaWiki\\Extension\\MyExtension\\Hooks::onProtectionFormshowLogExtract"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> ProtectionForm.php |
<translate> Interface:</translate> | ProtectionForm__showLogExtractHook.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:ProtectionForm::showLogExtract extensions</tvar>.</translate>
Details
- $article: the page the form is shown for
- $out: OutputPage object