MediaWiki REL1_39
MediaWiki\Page\RedirectLookup Interface Reference

Service for resolving a wiki page redirect. More...

Inheritance diagram for MediaWiki\Page\RedirectLookup:

Public Member Functions

 getRedirectTarget (PageIdentity $page)
 Get the redirect destination.
 

Detailed Description

Service for resolving a wiki page redirect.

Default implementation is RedirectStore.

Stability: unstable
Since
1.38

Definition at line 34 of file RedirectLookup.php.

Member Function Documentation

◆ getRedirectTarget()

MediaWiki\Page\RedirectLookup::getRedirectTarget ( PageIdentity $page)

Get the redirect destination.

Since
1.38
Parameters
PageIdentity$page
Returns
LinkTarget|null Returns null if this page is not a redirect
Exceptions
PageAssertionExceptionIf page does not represent an editable page

Implemented in MediaWiki\Page\RedirectStore.


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