getUserObj(); // Use FILTER_NOMIN annotation to prevent needless minification and caching (T84960). return ResourceLoader::FILTER_NOMIN . Xml::encodeJsCall( 'mw.user.tokens.set', [ 'searchnamespaceToken', $user->getEditToken( 'searchnamespace' ) ], (bool)ResourceLoader::inDebugMode() ); } /** * @return bool */ public function supportsURLLoading() { return false; } /** * @return string */ public function getGroup() { // Private modules can not be loaded as a dependency, only via OutputPage::addModules(). return 'private'; } }