Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Hooks\SkinAfterBottomScriptsHandler Class Reference

Public Member Functions

 __construct (string $langCode, RepoLinker $repoLinker, TermLookup $termLookup, RevisionLookup $revisionLookup)
 
 createSchemaElement (Title $title, $revisionTimestamp, EntityId $entityId)
 
 createSchema (Title $title, $revisionTimestamp, $entityConceptUri, File $imageFile=null, $description=null)
 

Private Member Functions

 queryPageImage (Title $title)
 If available, query the canonical page image injected into the og:image meta tag.
 
 getDescription (EntityId $entityId)
 

Private Attributes

 $langCode
 
 $repoLinker
 
 $termLookup
 
 $revisionLookup
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\SkinAfterBottomScriptsHandler::__construct ( string $langCode,
RepoLinker $repoLinker,
TermLookup $termLookup,
RevisionLookup $revisionLookup )

Member Function Documentation

◆ createSchema()

Wikibase\Client\Hooks\SkinAfterBottomScriptsHandler::createSchema ( Title $title,
$revisionTimestamp,
$entityConceptUri,
File $imageFile = null,
$description = null )
Parameters
Title$title
string | null$revisionTimestamp
string$entityConceptUri
File | null$imageFile
string | null$description
Returns
array

◆ createSchemaElement()

Wikibase\Client\Hooks\SkinAfterBottomScriptsHandler::createSchemaElement ( Title $title,
$revisionTimestamp,
EntityId $entityId )
Parameters
Title$title
string | null$revisionTimestamp
EntityId$entityId
Returns
string

◆ getDescription()

Wikibase\Client\Hooks\SkinAfterBottomScriptsHandler::getDescription ( EntityId $entityId)
private

◆ queryPageImage()

Wikibase\Client\Hooks\SkinAfterBottomScriptsHandler::queryPageImage ( Title $title)
private

If available, query the canonical page image injected into the og:image meta tag.

It's important that the schema image match the page meta image since the schema describes the page.

Parameters
Title$title
Returns
File|null

Member Data Documentation

◆ $langCode

Wikibase\Client\Hooks\SkinAfterBottomScriptsHandler::$langCode
private

◆ $repoLinker

Wikibase\Client\Hooks\SkinAfterBottomScriptsHandler::$repoLinker
private

◆ $revisionLookup

Wikibase\Client\Hooks\SkinAfterBottomScriptsHandler::$revisionLookup
private

◆ $termLookup

Wikibase\Client\Hooks\SkinAfterBottomScriptsHandler::$termLookup
private

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