Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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.
 
 getTitleHtml (EntityDocument $entity)
 Returns the html used for the title of the page.
 

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\ItemView, and Wikibase\View\PropertyView.

◆ 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\EntityView, Wikibase\View\ItemView, and Wikibase\View\PropertyView.


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