Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\ParserOutput\EntityTermsViewFactory Class Reference

Public Member Functions

 newEntityTermsView (EntityDocument $entity, Language $language, TermLanguageFallbackChain $termFallbackChain, $useTermbox=false)
 

Private Member Functions

 newPlaceHolderEmittingEntityTermsView (EntityDocument $entity, Language $language, TermLanguageFallbackChain $termFallbackChain)
 
 newTermboxView (Language $language)
 Note that this always builds a view with the main user interface language as the only parameter influencing the markup.
 

Detailed Description

Member Function Documentation

◆ newEntityTermsView()

Wikibase\Repo\ParserOutput\EntityTermsViewFactory::newEntityTermsView ( EntityDocument $entity,
Language $language,
TermLanguageFallbackChain $termFallbackChain,
$useTermbox = false )
Parameters
EntityDocument$entity
Language$language
TermLanguageFallbackChain$termFallbackChain
bool$useTermbox
Returns
CacheableEntityTermsView

◆ newPlaceHolderEmittingEntityTermsView()

Wikibase\Repo\ParserOutput\EntityTermsViewFactory::newPlaceHolderEmittingEntityTermsView ( EntityDocument $entity,
Language $language,
TermLanguageFallbackChain $termFallbackChain )
private

◆ newTermboxView()

Wikibase\Repo\ParserOutput\EntityTermsViewFactory::newTermboxView ( Language $language)
private

Note that this always builds a view with the main user interface language as the only parameter influencing the markup.

This is because the objects created from this factory are assumed to write into ParserOutput which should not include any user-specific markup.


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