Wikibase
MediaWiki Wikibase extension
Wikibase\View\EntityMetaTagsCreator Interface Reference

Interface for creating meta tags (e.g. More...

+ Inheritance diagram for Wikibase\View\EntityMetaTagsCreator:

Public Member Functions

 getMetaTags (EntityDocument $entity)
 Creates an entity meta tags array with keys as follows: array['title'] string The title e.g. More...
 

Detailed Description

Interface for creating meta tags (e.g.

title and description) for all different kinds of EntityDocument.

Member Function Documentation

◆ getMetaTags()

Wikibase\View\EntityMetaTagsCreator::getMetaTags ( EntityDocument  $entity)

Creates an entity meta tags array with keys as follows: array['title'] string The title e.g.

for the html page title of an entity. array['description'] string|null The description which may not always be set.

Parameters
EntityDocument$entity
Returns
array An entity meta tags array (See above)

Implemented in Wikibase\View\DefaultMetaTagsCreator.


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