Manual:Hooks/ImportLogInterwikiLink

ImportLogInterwikiLink
Available from version 1.27.0 (Gerrit change 264452)
Hook to change the interwiki link used in log entries and edit summaries for transwiki imports.
Define function:
public static function onImportLogInterwikiLink( string &$fullInterwikiPrefix, string &$pageTitle ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ImportLogInterwikiLink": "MyExtensionHooks::onImportLogInterwikiLink"
	}
}
Called from: File(s): specials/helpers/ImportReporter.php
Interface: ImportLogInterwikiLinkHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ImportLogInterwikiLink extensions.

DetailsEdit

  • &$fullInterwikiPrefix - Interwiki prefix, may contain colons.
  • &$pageTitle - String that contains page title.