gplx/mediawiki/extensions/SemanticMediaWiki/docs/technical/hooks/hook.resultformat.overrided...

538 B

  • Since: 3.1
  • Description: Hook to override SMWs implementation of default result format handling. Replaces the SMWResultFormat hook.
  • Reference class: ResultFormat.php

Signature

use MediaWiki\MediaWikiServices;

\MediaWikiServices::getInstance()->getHookContainer()->register( 'SMW::ResultFormat::OverrideDefaultFormat', function( &$format, $printRequests ) {

	return true;
} );