/** * Register __NOCOLLABORATIONHUBTOC__ as a magic word. * * @param array &$magicWords All double underscore magic ids */ public static function onGetDoubleUnderscoreIDs( array &$magicWords ) { $magicWords[] = 'nocollaborationhubtoc'; }
Might be worth adding a proper magic file
e.g https://github.com/wikimedia/mediawiki-extensions-CategoryTree/blob/master/CategoryTree.i18n.magic.php and https://github.com/wikimedia/mediawiki-extensions-CategoryTree/blob/master/extension.json#L25-L28