MediaWiki  master
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. More...
 

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: