MediaWiki master
MediaWiki\Specials\Contribute\ContributeFactory Class Reference

Public Member Functions

 __construct (MessageLocalizer $localizer, HookRunner $hookRunner)
 
 getCards ()
 

Static Public Member Functions

static getAssociatedNavigationLinks (UserIdentity $viewingUser, ?UserIdentity $targetUser)
 
static isEnabledOnCurrentSkin (Skin $skin, array $specialContributeSkinsEnabled=[])
 Check if the Special:Contribute page is enabled for the current skin This can be removed when T323083 is resolved ie.
 

Detailed Description

Definition at line 31 of file ContributeFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Specials\Contribute\ContributeFactory::__construct ( MessageLocalizer $localizer,
HookRunner $hookRunner )
Parameters
MessageLocalizer$localizer
HookRunner$hookRunner

Definition at line 40 of file ContributeFactory.php.

Member Function Documentation

◆ getAssociatedNavigationLinks()

static MediaWiki\Specials\Contribute\ContributeFactory::getAssociatedNavigationLinks ( UserIdentity $viewingUser,
?UserIdentity $targetUser )
static
Parameters
UserIdentity$viewingUser
?UserIdentity$targetUser
Returns
array

Definition at line 92 of file ContributeFactory.php.

◆ getCards()

MediaWiki\Specials\Contribute\ContributeFactory::getCards ( )
Returns
array

Definition at line 48 of file ContributeFactory.php.

◆ isEnabledOnCurrentSkin()

static MediaWiki\Specials\Contribute\ContributeFactory::isEnabledOnCurrentSkin ( Skin $skin,
array $specialContributeSkinsEnabled = [] )
static

Check if the Special:Contribute page is enabled for the current skin This can be removed when T323083 is resolved ie.

the Special:Contribute feature has been shipped by the WMF Language Team.

Parameters
Skin$skin
array$specialContributeSkinsEnabled
Returns
bool

Definition at line 76 of file ContributeFactory.php.


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