1.2 KiB
1.2 KiB
SMW::Parser::AfterLinksProcessingComplete
- Since: 3.1
- Description: Hook to add additional annotation parsing after
InTextAnnotationParserhas 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
hook.parser.afterlinksprocessingcomplete.mdto provide an example how the hook can be used to register a # hash tag parser