Jump to content

Manual:Hooks/ImportHandleToplevelXMLTag

From mediawiki.org
ImportHandleToplevelXMLTag
Available from version 1.17.0
When parsing a top level XML tag.
Define function:
public static function onImportHandleToplevelXMLTag( $importer ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ImportHandleToplevelXMLTag": "MediaWiki\\Extension\\MyExtension\\Hooks::onImportHandleToplevelXMLTag"
	}
}
Called from: File(s): import/WikiImporter.php
Interface: ImportHandleToplevelXMLTagHook.php

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


Details

[edit]
  • $importer: WikiImporter object

Return false to stop further processing of the tag