Handles the view action for Wikibase entities.
More...
◆ addLinkHeaders()
Wikibase\Repo\Actions\ViewEntityAction::addLinkHeaders |
( |
OutputPage |
$outputPage | ) |
|
|
private |
Add alternate links to the HTTP response.
- Parameters
-
◆ constructLinkAlternateHeader()
Wikibase\Repo\Actions\ViewEntityAction::constructLinkAlternateHeader |
( |
string |
$url, |
|
|
string |
$type |
|
) |
| |
|
private |
Create an alternate link header for the given URI and MIME type, with no extra information.
- Parameters
-
string | $url | the URL of the relation |
string | $type | the MIME type for the link header entry |
- Returns
- string relation
◆ getDescription()
Wikibase\Repo\Actions\ViewEntityAction::getDescription |
( |
| ) |
|
|
protected |
- See also
- Action::getDescription
- Returns
- string Empty.
◆ isDiff()
Wikibase\Repo\Actions\ViewEntityAction::isDiff |
( |
| ) |
|
|
private |
◆ isEditable()
Wikibase\Repo\Actions\ViewEntityAction::isEditable |
( |
| ) |
|
|
private |
- Returns
- bool False for older revisions, or if this is for sure not a plain view (e.g. diff or print view).
◆ onBeforeDisplayNoArticleText()
static Wikibase\Repo\Actions\ViewEntityAction::onBeforeDisplayNoArticleText |
( |
Article |
$article | ) |
|
|
static |
Handler for the BeforeDisplayNoArticleText called by Article.
We implement this solely to replace the standard message that is shown when an entity does not exists.
- Parameters
-
- Returns
- bool
- Exceptions
-
◆ overridePageMetaTags()
Wikibase\Repo\Actions\ViewEntityAction::overridePageMetaTags |
( |
OutputPage |
$outputPage | ) |
|
|
private |
This will be the label, if available, or else the entity id (e.g.
'Q42'). This is passed via parser output and output page to save overhead on view actions.
- Parameters
-
◆ requiresUnblock()
Wikibase\Repo\Actions\ViewEntityAction::requiresUnblock |
( |
| ) |
|
◆ requiresWrite()
Wikibase\Repo\Actions\ViewEntityAction::requiresWrite |
( |
| ) |
|
◆ setDiffPageTitle()
Wikibase\Repo\Actions\ViewEntityAction::setDiffPageTitle |
( |
OutputPage |
$outputPage, |
|
|
|
$titleText |
|
) |
| |
|
private |
- Parameters
-
OutputPage | $outputPage | |
string | $titleText | |
◆ setHTMLTitle()
Wikibase\Repo\Actions\ViewEntityAction::setHTMLTitle |
( |
OutputPage |
$outputPage, |
|
|
|
$titleText |
|
) |
| |
|
private |
- Parameters
-
OutputPage | $outputPage | |
string | $titleText | |
◆ show()
Wikibase\Repo\Actions\ViewEntityAction::show |
( |
| ) |
|
◆ showEntityPage()
Wikibase\Repo\Actions\ViewEntityAction::showEntityPage |
( |
| ) |
|
|
private |
The documentation for this class was generated from the following file: