Gets a notice about the Wikibase Item belonging to the current page after a move (in case there's one).
More...
Gets a notice about the Wikibase Item belonging to the current page after a move (in case there's one).
- Copyright
- GPL-2.0-or-later
- Author
- Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >
◆ __construct()
Wikibase\Client\Hooks\MovePageNotice::__construct |
( |
bool | $isMobileView, |
|
|
SiteLinkLookup | $siteLinkLookup, |
|
|
string | $siteId, |
|
|
RepoLinker | $repoLinker ) |
- Parameters
-
bool | $isMobileView | |
SiteLinkLookup | $siteLinkLookup | |
string | $siteId | Global id of the client wiki |
RepoLinker | $repoLinker | |
◆ factory()
◆ getItemUrl()
Wikibase\Client\Hooks\MovePageNotice::getItemUrl |
( |
Title | $title | ) |
|
|
private |
Create a repo link directly to the item.
We can't use Special:ItemByTitle here as the item might have already been updated.
◆ getPageMoveNoticeHtml()
Wikibase\Client\Hooks\MovePageNotice::getPageMoveNoticeHtml |
( |
Title | $oldTitle, |
|
|
Title | $newTitle ) |
|
private |
- Parameters
-
Title | $oldTitle | Title of the page before the move |
Title | $newTitle | Title of the page after the move |
◆ onSpecialMovepageAfterMove()
Wikibase\Client\Hooks\MovePageNotice::onSpecialMovepageAfterMove |
( |
| $movePage, |
|
|
| $oldTitle, |
|
|
| $newTitle ) |
◆ $isMobileView
bool Wikibase\Client\Hooks\MovePageNotice::$isMobileView |
|
private |
◆ $repoLinker
RepoLinker Wikibase\Client\Hooks\MovePageNotice::$repoLinker |
|
private |
◆ $siteId
string Wikibase\Client\Hooks\MovePageNotice::$siteId |
|
private |
◆ $siteLinkLookup
The documentation for this class was generated from the following file: