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

760 B

SMW::Parser::ParserAfterTidyPropertyAnnotationComplete

  • Since: 3.2
  • Description: Provides a method to add additional PropertyAnnotator as part of the ParserAfterTidy after default annotators have been executed
  • Reference class: ParserAfterTidy.php

Signature

use MediaWiki\MediaWikiServices;

MediaWikiServices::getInstance()->getHookContainer()->register( 'SMW::Parser::ParserAfterTidyPropertyAnnotationComplete', function( $propertyAnnotator, $parserOutput ) {

	$fooAnnotator = new FooAnnotator(
		$propertyAnnotator
	);

	$fooAnnotator->addAnnotation();

	return true;
} );