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

Public Member Functions

 __construct (array $redirectBadgeItems)
 
 normalize (Site $site, string $title, array $badges)
 Normalize the given title on the given site, resolving redirects unless the badges include one of the configured redirect badges.
 

Private Attributes

 $redirectBadgeItems
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\SiteLinkPageNormalizer::__construct ( array $redirectBadgeItems)
Parameters
string[]$redirectBadgeItems

Member Function Documentation

◆ normalize()

Wikibase\Repo\SiteLinkPageNormalizer::normalize ( Site $site,
string $title,
array $badges )

Normalize the given title on the given site, resolving redirects unless the badges include one of the configured redirect badges.

Parameters
Site$site
string$title
string[]$badgesitem ID serializations
Returns
string|false

Member Data Documentation

◆ $redirectBadgeItems

Wikibase\Repo\SiteLinkPageNormalizer::$redirectBadgeItems
private

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