Manual:Hooks/EditPage::showReadOnlyForm:initial
From Linux Web Expert
EditPage::showReadOnlyForm:initial | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> Called just before the read only edit form is rendered | |
<translate> Define function:</translate> | public static function onEditPage_showReadOnlyForm_initial( EditPage $editPage, OutputPage $output ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"EditPage::showReadOnlyForm:initial": "MediaWiki\\Extension\\MyExtension\\Hooks::onEditPageshowReadOnlyForminitial"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> EditPage.php |
<translate> Interface:</translate> | EditPage__showReadOnlyForm_initialHook.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:EditPage::showReadOnlyForm:initial extensions</tvar>.</translate>
Details
$editPage
: the current EditPage object.$output
: the OutputPage object.
Notes
This hook is analogous to Hooks/EditPage::showEditForm:initial, but used when the page is not in served in edit mode, but in read only mode.