|
| __construct (EntityLookup $entityLookup, LabelDescriptionLookup $labelDescriptionLookup, EntityTitleLookup $titleLookup, LocalizedTextProvider $textProvider, NonExistingEntityIdHtmlFormatter $nonExistingEntityIdHtmlFormatter) |
|
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::__construct |
( |
EntityLookup | $entityLookup, |
|
|
LabelDescriptionLookup | $labelDescriptionLookup, |
|
|
EntityTitleLookup | $titleLookup, |
|
|
LocalizedTextProvider | $textProvider, |
|
|
NonExistingEntityIdHtmlFormatter | $nonExistingEntityIdHtmlFormatter ) |
◆ buildLinkLabel()
Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::buildLinkLabel |
( |
TermList | $lemmas | ) |
|
|
private |
- Parameters
-
- Returns
- string HTML
◆ buildLinkTitle()
Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::buildLinkTitle |
( |
LexemeId | $id, |
|
|
ItemId | $languageId, |
|
|
ItemId | $lexicalCategoryId ) |
|
private |
- Parameters
-
LexemeId | $id | |
ItemId | $languageId | |
ItemId | $lexicalCategoryId | |
- Returns
- string Plain text
◆ formatLemmas()
Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::formatLemmas |
( |
TermList | $lemmas | ) |
|
|
private |
- Parameters
-
- Returns
- string[] HTML elements
◆ getLabel()
Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::getLabel |
( |
ItemId | $id | ) |
|
|
private |
Gets the item's label or falls back to its id serialization.
- Parameters
-
- Returns
- string
◆ $entityLookup
Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::$entityLookup |
|
private |
◆ $labelDescriptionLookup
Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::$labelDescriptionLookup |
|
private |
◆ $nonExistingFormatter
Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::$nonExistingFormatter |
|
private |
◆ $textProvider
Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::$textProvider |
|
private |
◆ $titleLookup
Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::$titleLookup |
|
private |
The documentation for this class was generated from the following file: