This MediaWiki hook is undocumented. Please improve the MediaWiki by adding documentation to it. See Template:MediaWikiHook for instructions on how to do it. Documentation is most likely available in hooks.txt in the MediaWiki repository.
For examples of extensions using this hook, see Category:CategoryViewer::doCategoryQuery extensions.