MediaWiki 1.39.10
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onMultiContentSave ( $renderedRevision, $user, $summary, $flags, $status) | |
This hook is called before an article is saved. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "MultiContentSave" to register handlers implementing this interface.
Definition at line 17 of file MultiContentSaveHook.php.
MediaWiki\Storage\Hook\MultiContentSaveHook::onMultiContentSave | ( | $renderedRevision, | |
$user, | |||
$summary, | |||
$flags, | |||
$status ) |
This hook is called before an article is saved.
RenderedRevision | $renderedRevision | Planned revision. Provides access to: (1) ParserOutput of all slots, (2) RevisionRecord, which contains (2a) Title of the page that will be edited, (2b) RevisionSlots - content of all slots, including inherited slots, where content has already been modified by PreSaveTransform. NOTE: because this revision is not yet saved, slots don't have content ID or address, and revision itself doesn't have an ID. |
UserIdentity | $user | Author of this new revision |
CommentStoreComment | $summary | User-provided edit comment/summary (not an autosummary: will be empty if the user hasn't provided a comment) |
int | $flags | Combination of EDIT_* flags, e.g. EDIT_MINOR |
Status | $status | If the hook is aborted, error code can be placed into this Status |
Implemented in MediaWiki\HookContainer\HookRunner.