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

1.2 KiB

SMW::Parser::AfterLinksProcessingComplete

  • Since: 3.1
  • Description: Hook to add additional annotation parsing after InTextAnnotationParser has finished the processing of standard annotation links (e.g. [[...::...]])
  • Reference class: InTextAnnotationParser.php

Signature

use MediaWiki\MediaWikiServices;
use SMW\Parser\AnnotationProcessor;

MediaWikiServices::getInstance()->getHookContainer()->register( 'SMW::Parser::AfterLinksProcessingComplete', function( &$text, AnnotationProcessor $annotationProcessor ) {

	return true;
} );

See also