Manual:Hooks/EditPage::showReadOnlyForm:initial

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.

DetailsEdit

NotesEdit

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.