Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 535 Bytes

hook.exporter.controller.addexpdata.md

File metadata and controls

18 lines (13 loc) · 535 Bytes
  • Since: 3.0
  • Description: Hook allows to add additional RDF data for a selected subject (smwAddToRDFExport was deprecated with 3.0)
  • Reference class: SMWExportController

Signature

use MediaWiki\MediaWikiServices;
use SMW\DIWikiPage;

MediaWikiServices::getInstance()->getHookContainer()->register( 'SMW::Exporter::Controller::AddExpData', function( DIWikiPage $subject, &$expDataList, $hasRecursionDepth, $withBacklinks ) {

	// $expData = new ExpData( ... );
	// $expDataList[] = $expData;

	return true;
} );