MediaWiki REL1_39
MediaWiki\Page\RedirectStore Class Reference

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

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

Public Member Functions

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

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

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

Definition at line 42 of file RedirectStore.php.

Member Function Documentation

◆ getRedirectTarget()

MediaWiki\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 MediaWiki\Page\RedirectLookup.

Definition at line 46 of file RedirectStore.php.


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