Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Hooks\SkinAfterPortletHandler Class Reference

Handler for the "SkinAfterPortlet" hook. More...

+ Inheritance diagram for Wikibase\Client\Hooks\SkinAfterPortletHandler:
+ Collaboration diagram for Wikibase\Client\Hooks\SkinAfterPortletHandler:

Public Member Functions

 __construct (RepoItemLinkGenerator $repoItemLinkGenerator)
 
 onSkinAfterPortlet ( $skin, $portlet, &$html)
 
 doSkinAfterPortlet (Skin $skin)
 Sets the appropriate languages action link (edit|add) or none for this title and context.
 

Static Public Member Functions

static factory (EntityIdParser $entityIdParser, string $langLinkSiteGroup, NamespaceChecker $namespaceChecker, RepoLinker $repoLinker, SettingsArray $clientSettings)
 

Private Attributes

 $repoItemLinkGenerator
 

Detailed Description

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.

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 >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\SkinAfterPortletHandler::__construct ( RepoItemLinkGenerator $repoItemLinkGenerator)

Member Function Documentation

◆ 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
Skin$skin
Returns
null|string

◆ factory()

static Wikibase\Client\Hooks\SkinAfterPortletHandler::factory ( EntityIdParser $entityIdParser,
string $langLinkSiteGroup,
NamespaceChecker $namespaceChecker,
RepoLinker $repoLinker,
SettingsArray $clientSettings )
static

◆ onSkinAfterPortlet()

Wikibase\Client\Hooks\SkinAfterPortletHandler::onSkinAfterPortlet ( $skin,
$portlet,
& $html )
Parameters
Skin$skin
string$portlet
string&$html

Member Data Documentation

◆ $repoItemLinkGenerator

Wikibase\Client\Hooks\SkinAfterPortletHandler::$repoItemLinkGenerator
private

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