Wikibase
MediaWiki Wikibase extension
Wikibase\View\EntityDocumentView Interface Reference

Interface for creating views for all different kinds of Wikibase\DataModel\Entity\EntityDocument. More...

+ Inheritance diagram for Wikibase\View\EntityDocumentView:

Public Member Functions

 getContent (EntityDocument $entity, $revision)
 Builds and returns the HTML representing a whole WikibaseEntity. More...
 
 getTitleHtml (EntityDocument $entity)
 Returns the html used for the title of the page. More...
 

Detailed Description

Interface for creating views for all different kinds of Wikibase\DataModel\Entity\EntityDocument.

Member Function Documentation

◆ getContent()

Wikibase\View\EntityDocumentView::getContent ( EntityDocument  $entity,
  $revision 
)

Builds and returns the HTML representing a whole WikibaseEntity.

Parameters
EntityDocument$entitythe entity to render
int$revisionthe revision of the entity to render
Returns
ViewContent

Implemented in Wikibase\View\PropertyView, and Wikibase\View\ItemView.

◆ getTitleHtml()

Wikibase\View\EntityDocumentView::getTitleHtml ( EntityDocument  $entity)

Returns the html used for the title of the page.

See also
\ParserOutput::setDisplayTitle()
Parameters
EntityDocument$entity
Returns
string HTML

Implemented in Wikibase\View\PropertyView, Wikibase\View\ItemView, and Wikibase\View\EntityView.


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