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.
 

Detailed Description

Definition at line 13 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 22 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 72 of file ContributeFactory.php.

◆ getCards()

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

Definition at line 30 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.

Parameters
Skin$skin
array$specialContributeSkinsEnabled
Returns
bool

Definition at line 55 of file ContributeFactory.php.


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