Extension:WSSearch/Hooks/WSSearchOnLoadFrontend

WSSearchOnLoadFrontend
Available from version 3.5.4
This hook must be implemented by any WSSearch frontend. It gets called when the #WSSearchFrontend parser function is called.
Define function:
public static function onWSSearchOnLoadFrontend( array &$results ) { ... }
Attach hook:
$wgHooks['WSSearchOnLoadFrontend'][] = 'MyExtensionHooks::onWSSearchOnLoadFrontend';
Called from:File(s): WSSearch / src/WSSearchHooks.php
Function(s): searchEngineFrontendCallback

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

DetailsEdit

  • string &$result: The result of the call to the parser function. This is the text that will be transcluded on the page.
  • SearchEngineConfig $config: The SearchEngineConfig object of the current page.
  • Parser $parser: The current Parser object
  • array $parameters: The parameters passed to the #WSSearchFrontend call