Manual:Hooks/CirrusSearchProfileService

Category:Extension hooks#CirrusSearchProfileService
CirrusSearchProfileService
Available from version 1.31.0 (Gerrit change 399451)
Allows extensions to register search profile repositories
Define function:
public static function onCirrusSearchProfileService( SearchProfileService $service ) { ... }
Attach hook:
$wgHooks['CirrusSearchProfileService'][] = 'MyExtensionHooks::onCirrusSearchProfileService';
Called from:File(s): Category:Extension hooks provided by CirrusSearchCirrusSearch / includes/Profile/SearchProfileServiceFactory.php

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:CirrusSearchProfileService extensions.

This hook is a part of CirrusSearch extension.

Details

  • $service - \CirrusSearch\Profile\SearchProfileService the profile service being built