< Manual:Hooks
EditPage::showReadOnlyForm:initial | |
---|---|
Available from version 1.24.0 Called just before the read only edit form is rendered | |
Define function: | public static function onEditPage_showReadOnlyForm_initial( EditPage $editPage, OutputPage $output ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"EditPage::showReadOnlyForm:initial": "MyExtensionHooks::onEditPageshowReadOnlyForminitial"
}
}
|
Called from: | File(s): EditPage.php |
Interface: | EditPage__showReadOnlyForm_initialHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:EditPage::showReadOnlyForm:initial extensions.
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.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.