MediaWiki  master
MediaWiki\Hook\AfterImportPageHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\AfterImportPageHook:

Public Member Functions

 onAfterImportPage ( $title, $foreignTitle, $revCount, $sRevCount, $pageInfo)
 This hook is called when a page import is completed. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "AfterImportPage" to register handlers implementing this interface.

Stable to implement

Definition at line 15 of file AfterImportPageHook.php.

Member Function Documentation

◆ onAfterImportPage()

MediaWiki\Hook\AfterImportPageHook::onAfterImportPage (   $title,
  $foreignTitle,
  $revCount,
  $sRevCount,
  $pageInfo 
)

This hook is called when a page import is completed.

Since
1.35
Parameters
Title$titleTitle under which the revisions were imported
ForeignTitle$foreignTitleForeignTitle object based on data provided by the XML file
int$revCountNumber of revisions in the XML file
int$sRevCountNumber of successfully imported revisions
array$pageInfoAssociative array of page information
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: