Manual:Hooks/EditPage::attemptSave:after

From mediawiki.org
Jump to navigation Jump to search
EditPage::attemptSave:after
Available from version 1.25.0 (Gerrit change 189049)
Called after an article save attempt
Define function:
public static function onEditPage_attemptSave_after( EditPage $editPage, Status $status, $details ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"EditPage::attemptSave:after": "MyExtensionHooks::onEditPageattemptSaveafter"
	}
}
Called from:File(s): EditPage.php
Function(s): attemptSave
Interface:EditPage__attemptSave_afterHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:EditPage::attemptSave:after extensions.

Details[edit]

  • $editpage: the EditPage object
  • $status: the resulting Status object
  • $resultDetails: The result details as an array (see EditPage->internalAttemptSave), or false