Jump to content

Manual:Hooks/EditPage::attemptSave:after

From mediawiki.org
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": "MediaWiki\\Extension\\MyExtension\\Hooks::onEditPageattemptSaveafter"
	}
}
Called from: File(s): editpage/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