gplx/mediawiki/extensions/SemanticMediaWiki/docs/technical/hooks/hook.parser.beforemagicword...

746 B

  • Since: 2.2
  • Description: Hook to extend the magic words list that the InTextAnnotationParser should inspect on a given text section
  • Reference class: InTextAnnotationParser.php

Signature

use MediaWiki\MediaWikiServices;
use SMW\SQLStore\SQLStore;

MediaWikiServices::getInstance()->getHookContainer()->register( 'SMW::Parser::BeforeMagicWordsFinder', function( array &$magicWords ) {

	return true;
} );

See also