MediaWiki  master
Page\RedirectStore Class Reference

Service for storing and retreiving page redirect information. More...

Inheritance diagram for Page\RedirectStore:
Collaboration diagram for Page\RedirectStore:

Public Member Functions

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

Private Attributes

WikiPageFactory $wikiPageFactory
 

Detailed Description

Service for storing and retreiving page redirect information.

Note
This is not yet ready. https://phabricator.wikimedia.org/T290639 To manage redirects today, use WikiPage via WikiPageFactory instead.
Stability: unstable
Since
1.38

Definition at line 35 of file RedirectStore.php.

Constructor & Destructor Documentation

◆ __construct()

Page\RedirectStore::__construct ( WikiPageFactory  $wikiPageFactory)
Parameters
WikiPageFactory$wikiPageFactory

Definition at line 42 of file RedirectStore.php.

References Page\RedirectStore\$wikiPageFactory.

Member Function Documentation

◆ getRedirectTarget()

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

Implements Page\RedirectLookup.

Definition at line 46 of file RedirectStore.php.

Member Data Documentation

◆ $wikiPageFactory

WikiPageFactory Page\RedirectStore::$wikiPageFactory
private

Definition at line 37 of file RedirectStore.php.

Referenced by Page\RedirectStore\__construct().


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