Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Hooks\SidebarBeforeOutputHookHandler Class Reference

Public Member Functions

 __construct (string $baseConceptUri, EntityIdLookup $idLookup, EntityLookup $entityLookup, EntityNamespaceLookup $nsLookup, LoggerInterface $logger)
 
 buildConceptUriLink (Skin $skin)
 Build concept URI link for the sidebar toolbox.
 

Private Member Functions

 getValidEntityId (?Title $title)
 Get a valid entity id, based on a series of checks.
 

Private Attributes

 $baseConceptUri
 
 $idLookup
 
 $entityLookup
 
 $nsLookup
 
 $logger
 

Detailed Description

If in appropriate namespace and page, create a Concept URI link for later addition to the sidebar.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Hooks\SidebarBeforeOutputHookHandler::__construct ( string  $baseConceptUri,
EntityIdLookup  $idLookup,
EntityLookup  $entityLookup,
EntityNamespaceLookup  $nsLookup,
LoggerInterface  $logger 
)

Member Function Documentation

◆ buildConceptUriLink()

Wikibase\Repo\Hooks\SidebarBeforeOutputHookHandler::buildConceptUriLink ( Skin  $skin)

Build concept URI link for the sidebar toolbox.

Parameters
Skin$skin
Returns
string[]|null Array of link elements or Null if link cannot be created.

◆ getValidEntityId()

Wikibase\Repo\Hooks\SidebarBeforeOutputHookHandler::getValidEntityId ( ?Title  $title)
private

Get a valid entity id, based on a series of checks.

Parameters
Title | null$title
Returns
EntityId|null

Member Data Documentation

◆ $baseConceptUri

Wikibase\Repo\Hooks\SidebarBeforeOutputHookHandler::$baseConceptUri
private

◆ $entityLookup

Wikibase\Repo\Hooks\SidebarBeforeOutputHookHandler::$entityLookup
private

◆ $idLookup

Wikibase\Repo\Hooks\SidebarBeforeOutputHookHandler::$idLookup
private

◆ $logger

Wikibase\Repo\Hooks\SidebarBeforeOutputHookHandler::$logger
private

◆ $nsLookup

Wikibase\Repo\Hooks\SidebarBeforeOutputHookHandler::$nsLookup
private

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