MediaWiki REL1_35
MediaWiki\Search\Hook\SearchResultInitFromTitleHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Search\Hook\SearchResultInitFromTitleHook:

Public Member Functions

 onSearchResultInitFromTitle ( $title, &$id)
 Use this hook to set the revision used when displaying a page in search results.
 

Detailed Description

Stable to implement.

Definition at line 11 of file SearchResultInitFromTitleHook.php.

Member Function Documentation

◆ onSearchResultInitFromTitle()

MediaWiki\Search\Hook\SearchResultInitFromTitleHook::onSearchResultInitFromTitle (   $title,
$id 
)

Use this hook to set the revision used when displaying a page in search results.

Since
1.35
Parameters
Title$titleCurrent title being displayed in search results
int | bool&$idRevision ID (default is false, for latest)
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: