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

Public Member Functions

 __construct (WikibaseClient $client, RepoLinker $repoLinker)
 
 createSchemaElement (Title $title, $revisionTimestamp, EntityId $entityId)
 
 createSchema (Title $title, $revisionTimestamp, $entityConceptUri, File $imageFile=null, $description=null)
 

Private Member Functions

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

Private Attributes

 $client
 
 $repoLinker
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\SkinAfterBottomScriptsHandler::__construct ( WikibaseClient  $client,
RepoLinker  $repoLinker 
)
Parameters
WikibaseClient$client

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 ( EntityDocument  $entity = null)
private
Parameters
EntityDocument | null$entity
Returns
string

◆ lookupEntityDocument()

Wikibase\Client\Hooks\SkinAfterBottomScriptsHandler::lookupEntityDocument ( EntityId  $entityId)
private
Parameters
EntityId$entityId
Returns
EntityDocument|null

◆ 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

◆ $client

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

◆ $repoLinker

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

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