|
MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...

Public Member Functions | |
| onSearchResultInitFromTitle ( $title, &$id) | |
| Use this hook to set the revision used when displaying a page in search results. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "SearchResultInitFromTitle" to register handlers implementing this interface.
Definition at line 14 of file SearchResultInitFromTitleHook.php.
| MediaWiki\Search\Hook\SearchResultInitFromTitleHook::onSearchResultInitFromTitle | ( | $title, | |
| & | $id ) |
Use this hook to set the revision used when displaying a page in search results.
| Title | $title | Current title being displayed in search results |
| int | bool | &$id | Revision ID (default is false, for latest) |
Implemented in MediaWiki\HookContainer\HookRunner.