WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\Presentation\Formatters\LexemeTermFormatter Class Reference

Public Member Functions

 __construct ( $separator)
 
 format (TermList $terms)
 Formats lexeme terms (lemmas, representations) as HTML.
 

Private Member Functions

 getTermHtml (Term $term)
 

Private Attributes

 $separator
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\Presentation\Formatters\LexemeTermFormatter::__construct ( $separator)

Member Function Documentation

◆ format()

Wikibase\Lexeme\Presentation\Formatters\LexemeTermFormatter::format ( TermList $terms)

Formats lexeme terms (lemmas, representations) as HTML.

Returns an empty string when given an empty TermList.

Parameters
TermList$terms
Returns
string HTML

◆ getTermHtml()

Wikibase\Lexeme\Presentation\Formatters\LexemeTermFormatter::getTermHtml ( Term $term)
private

Member Data Documentation

◆ $separator

Wikibase\Lexeme\Presentation\Formatters\LexemeTermFormatter::$separator
private

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