746 B
746 B
- Since: 2.2
- Description: Hook to extend the magic words list that the
InTextAnnotationParsershould 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
- See the
SemanticBreadcrumbLinksextension for how the hook can be used