MediaWiki  master
Page\RedirectLookup Interface Reference

Interface to handle redirects for a given page like getting the redirect target of an editable wiki page. More...

Inheritance diagram for Page\RedirectLookup:

Public Member Functions

 getRedirectTarget (PageIdentity $page)
 Get the redirect destination from this page and return a LinkTarget, or null if this page is not a redirect page. More...
 

Detailed Description

Interface to handle redirects for a given page like getting the redirect target of an editable wiki page.

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 from this page and return a LinkTarget, or null if this page is not a redirect page.

Since
1.38
Parameters
PageIdentity$page
Returns
LinkTarget|null

Implemented in Page\RedirectStore.


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