Debian Codegraph @

includes/specials/Hook/SpecialSearchResultsAppendHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 use MediaWiki\Output\OutputPage;
6 use MediaWiki\Specials\SpecialSearch;
7
8 /**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "SpecialSearchResultsAppend" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
15 interface SpecialSearchResultsAppendHook {
16 /**
17 * This hook is called immediately before returning HTML on the search results page.
18 *
19 * Useful for including a feedback link.
20 *
21 * @since 1.35
22 *
23 * @param SpecialSearch $specialSearch SpecialSearch object ($this)
24 * @param OutputPage $output $wgOut
25 * @param string $term Search term specified by the user
26 * @return bool|void True or no return value to continue or false to abort
27 */
28 public function onSpecialSearchResultsAppend( $specialSearch, $output, $term );
29 }