Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/PageDeletionDataUpdates

From mediawiki.org
<Manual:Hooks
PageDeletionDataUpdates
Available fromversion 1.32.0 (Gerrit change 418134)
Called when constructing a list of DeferrableUpdate to be executed when a page is deleted.
Define function:
publicstaticfunctiononPageDeletionDataUpdates(Title$title,\MediaWiki\Storage\RevisionRecord$revision,array&$updates){...}
Attach hook:Inextension.json:
{"Hooks":{"PageDeletionDataUpdates":"MediaWiki\\Extension\\MyExtension\\Hooks::onPageDeletionDataUpdates"}}
Called from:File(s):page/WikiPage.php
Function(s):getDeletionUpdates
Interface:PageDeletionDataUpdatesHook.php

For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:PageDeletionDataUpdates extensions.


Details

[edit]
  • $title: The Title of the page being deleted.
  • $revision: A MediaWiki\Storage\RevisionRecord representing the page's current revision at the time of deletion.
  • &$updates: A list of DeferrableUpdate that can be manipulated by the hook handler.

See also

[edit]
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/PageDeletionDataUpdates&oldid=3297620"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp