Handler for the "SkinAfterPortlet" hook.
More...
Handler for the "SkinAfterPortlet" hook.
Injects an edit link for language links pointing to the repo, and creates a dummy "Other languages" section for JS use.
- Copyright
- GPL-2.0-or-later
- Author
- Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >
-
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
◆ __construct()
Wikibase\Client\Hooks\SkinAfterPortletHandler::__construct |
( |
RepoItemLinkGenerator |
$repoItemLinkGenerator | ) |
|
◆ doSkinAfterPortlet()
Wikibase\Client\Hooks\SkinAfterPortletHandler::doSkinAfterPortlet |
( |
Skin |
$skin | ) |
|
Sets the appropriate languages action link (edit|add) or none for this title and context.
- See also
- RepoItemLinkGenerator::getLink()
- Parameters
-
- Returns
- null|string PhanTypeComparisonFromArray
◆ factory()
◆ onSkinAfterPortlet()
Wikibase\Client\Hooks\SkinAfterPortletHandler::onSkinAfterPortlet |
( |
|
$skin, |
|
|
|
$portlet, |
|
|
& |
$html |
|
) |
| |
- Parameters
-
Skin | $skin | |
string | $portlet | |
string | $html | |
◆ $repoItemLinkGenerator
Wikibase\Client\Hooks\SkinAfterPortletHandler::$repoItemLinkGenerator |
|
private |
The documentation for this class was generated from the following file: