Manual:Hooks/ArticleRollbackComplete/de

This page is a translated version of the page Manual:Hooks/ArticleRollbackComplete and the translation is 33% complete.
ArticleRollbackComplete
Erhältlich ab Version 1.12.0
Entfernt in Version 1.37.0 (Gerrit change 678414)
Wird ausgeführt, nachdem ein Artikel-Rollback abgeschlossen ist
Funktion definieren:
public static function onArticleRollbackComplete( &$article, $user, $revision, $current ) { ... }
Haken anbringen: In extension.json:
{
	"Hooks": {
		"ArticleRollbackComplete": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleRollbackComplete"
	}
}
Angerufen von: Datei(en): page/WikiPage.php
Interface: ArticleRollbackCompleteHook.php

For more information about attaching hooks, see Handbuch:Hooks .
For examples of extensions using this hook, see Category:ArticleRollbackComplete extensions/de.

Details

  • $article - the article that was edited. (WikiPage object) 1.18+
  • $user - the user who did the rollback
  • $revision - the revision the page was reverted back to
  • $current - the Revision object of the top edit that was reverted.

Siehe auch