Creates a notice about the Wikibase Item belonging to the current page after a delete (in case there's one).
More...
Creates a notice about the Wikibase Item belonging to the current page after a delete (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\DeletePageNoticeCreator::__construct |
( |
SiteLinkLookup | $siteLinkLookup, |
|
|
string | $siteId, |
|
|
RepoLinker | $repoLinker ) |
- Parameters
-
SiteLinkLookup | $siteLinkLookup | |
string | $siteId | Global id of the client wiki |
RepoLinker | $repoLinker | |
◆ factory()
◆ getItemUrl()
Wikibase\Client\Hooks\DeletePageNoticeCreator::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.
- Parameters
-
- Returns
- string|null
◆ getMessage()
Wikibase\Client\Hooks\DeletePageNoticeCreator::getMessage |
( |
Title | $title | ) |
|
|
private |
◆ getPageDeleteNoticeHtml()
Wikibase\Client\Hooks\DeletePageNoticeCreator::getPageDeleteNoticeHtml |
( |
Title | $title | ) |
|
- Parameters
-
- Returns
- string|null
◆ onArticleDeleteAfterSuccess()
Wikibase\Client\Hooks\DeletePageNoticeCreator::onArticleDeleteAfterSuccess |
( |
| $title, |
|
|
| $outputPage ) |
- Parameters
-
Title | $title | |
OutputPage | $outputPage | |
◆ $repoLinker
Wikibase\Client\Hooks\DeletePageNoticeCreator::$repoLinker |
|
private |
◆ $siteId
Wikibase\Client\Hooks\DeletePageNoticeCreator::$siteId |
|
private |
◆ $siteLinkLookup
Wikibase\Client\Hooks\DeletePageNoticeCreator::$siteLinkLookup |
|
private |
The documentation for this class was generated from the following file: