MediaWiki  master
Page\RedirectLookup Interface Reference

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

Inheritance diagram for Page\RedirectLookup:

Public Member Functions

 getRedirectTarget (PageIdentity $page)
 Get the redirect destination. More...
 

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()

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 Page\RedirectStore.


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