Outputs a sidebar section for other project links.
More...
Outputs a sidebar section for other project links.
- Copyright
- GPL-2.0-or-later
- Author
- Thomas Pellissier Tanon
-
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >
◆ __construct()
◆ buildPreliminarySidebarFromSiteLinks()
Wikibase\Client\Hooks\OtherProjectsSidebarGenerator::buildPreliminarySidebarFromSiteLinks |
( |
array |
$siteLinks | ) |
|
|
private |
- Parameters
-
- Returns
- array[] Arrays of link attributes indexed by site group and by global site id.
◆ buildProjectLinkSidebar()
Wikibase\Client\Hooks\OtherProjectsSidebarGenerator::buildProjectLinkSidebar |
( |
Title |
$title | ) |
|
- Parameters
-
- Returns
- array[] Array of arrays of attributes describing sidebar links, sorted by the site's group and global ids.
◆ buildProjectLinkSidebarFromItemId()
Wikibase\Client\Hooks\OtherProjectsSidebarGenerator::buildProjectLinkSidebarFromItemId |
( |
ItemId |
$itemId | ) |
|
- Parameters
-
- Returns
- array[] Array of arrays of attributes describing sidebar links, sorted by the site's group and global ids.
◆ buildSidebarLink()
Wikibase\Client\Hooks\OtherProjectsSidebarGenerator::buildSidebarLink |
( |
SiteLink |
$siteLink, |
|
|
Site |
$site |
|
) |
| |
|
private |
- Parameters
-
SiteLink | $siteLink | |
Site | $site | |
- Returns
- string[] Array of attributes describing a sidebar link.
◆ sortAndFlattenSidebar()
Wikibase\Client\Hooks\OtherProjectsSidebarGenerator::sortAndFlattenSidebar |
( |
array |
$linksByGroup | ) |
|
|
private |
The arrays of link attributes are indexed by site group and by global site id.
Sort them by both and then return the flattened array.
- Parameters
-
- Returns
- array[] Array of arrays of attributes describing sidebar links, sorted by the site's group and global ids.
◆ $localSiteId
Wikibase\Client\Hooks\OtherProjectsSidebarGenerator::$localSiteId |
|
private |
◆ $sidebarLinkBadgeDisplay
Wikibase\Client\Hooks\OtherProjectsSidebarGenerator::$sidebarLinkBadgeDisplay |
|
private |
◆ $siteIdsToOutput
Wikibase\Client\Hooks\OtherProjectsSidebarGenerator::$siteIdsToOutput |
|
private |
◆ $siteLinksForDisplayLookup
Wikibase\Client\Hooks\OtherProjectsSidebarGenerator::$siteLinksForDisplayLookup |
|
private |
◆ $siteLookup
Wikibase\Client\Hooks\OtherProjectsSidebarGenerator::$siteLookup |
|
private |
The documentation for this class was generated from the following file: