Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\View\DefaultMetaTagsCreator Class Reference

Default Class for creating meta tags. More...

+ Inheritance diagram for Wikibase\View\DefaultMetaTagsCreator:
+ Collaboration diagram for Wikibase\View\DefaultMetaTagsCreator:

Public Member Functions

 getMetaTags (EntityDocument $entity)
 Creates an entity meta tags array with keys as follows: array['title'] string The title set as the EntityID if it exists.
 

Detailed Description

Default Class for creating meta tags.

To be used in the absence of a specific EntityMetaTagsCreator Always returns the title meta tag set to the EntityID without a description

Member Function Documentation

◆ getMetaTags()

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

Creates an entity meta tags array with keys as follows: array['title'] string The title set as the EntityID if it exists.

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

Implements Wikibase\View\EntityMetaTagsCreator.


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