Jump to content

Schema:PageRestore

PHP logging

EventLogging::logEvent( 'PageRestore', 7495978, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"PageRestore": 7495978
			}
		}
	}
}

JavaScript logging

mw.track( 'event.PageRestore', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 7495978
description"Logs a page restoration event"
properties
userId
type"integer"
description"User ID of the user restoring the page (zero for anons)."
requiredtrue
userText
type"string"
description"Username or IP address of the user restoring the page."
requiredtrue
oldPageId
type"integer"
description"The ID of the deleted page."
requiredtrue
newPageId
type"integer"
description"The ID of the restored page."
requiredtrue
namespace
type"integer"
description"The namespace of the restored page"
requiredtrue
title
type"string"
description"The title of the restored page, in DB form with no namespace prefix"
requiredtrue
comment
type"string"
description"The comment provided by the restoring user."
requiredtrue