MinervaNeue
A responsive mobile first skin
Loading...
Searching...
No Matches
MediaWiki\Minerva\Menu\Definitions Class Reference

Set of all known menu items for easier building. More...

Public Member Functions

 __construct (SpecialPageFactory $specialPageFactory)
 Initialize definitions helper class.
 
 setContext (IContextSource $context)
 
 insertAuthMenuItem (Group $group)
 Creates a login or logout button with a profile button.
 
 msg (string $key)
 Perform message localization.
 
 insertNearbyIfSupported (Group $group)
 If Nearby is supported, build and inject the Nearby link.
 
 insertMobileOptionsItem (Group $group)
 Build and insert the Settings link.
 
 insertPreferencesItem (Group $group)
 Build and insert the Preferences link.
 
 insertAboutItem (Group $group)
 Build and insert About page link.
 
 insertDisclaimersItem (Group $group)
 Build and insert Disclaimers link.
 
 insertRecentChanges (Group $group)
 Build and insert the RecentChanges link.
 
 insertSpecialPages (Group $group)
 Build and insert the SpecialPages link.
 
 insertCommunityPortal (Group $group)
 Build and insert the CommunityPortal link.
 
 insertDonateItem (Group $group)
 Insert the Donate Link in the Mobile Menu.
 

Detailed Description

Set of all known menu items for easier building.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Minerva\Menu\Definitions::__construct ( SpecialPageFactory $specialPageFactory)

Initialize definitions helper class.

Parameters
SpecialPageFactory$specialPageFactory

Member Function Documentation

◆ insertAboutItem()

MediaWiki\Minerva\Menu\Definitions::insertAboutItem ( Group $group)

Build and insert About page link.

Parameters
Group$group

◆ insertAuthMenuItem()

MediaWiki\Minerva\Menu\Definitions::insertAuthMenuItem ( Group $group)

Creates a login or logout button with a profile button.

Parameters
Group$group

◆ insertCommunityPortal()

MediaWiki\Minerva\Menu\Definitions::insertCommunityPortal ( Group $group)

Build and insert the CommunityPortal link.

Parameters
Group$group

◆ insertDisclaimersItem()

MediaWiki\Minerva\Menu\Definitions::insertDisclaimersItem ( Group $group)

Build and insert Disclaimers link.

Parameters
Group$group

◆ insertDonateItem()

MediaWiki\Minerva\Menu\Definitions::insertDonateItem ( Group $group)

Insert the Donate Link in the Mobile Menu.

Parameters
Group$group

◆ insertMobileOptionsItem()

MediaWiki\Minerva\Menu\Definitions::insertMobileOptionsItem ( Group $group)

Build and insert the Settings link.

Parameters
Group$group

◆ insertNearbyIfSupported()

MediaWiki\Minerva\Menu\Definitions::insertNearbyIfSupported ( Group $group)

If Nearby is supported, build and inject the Nearby link.

Parameters
Group$group

◆ insertPreferencesItem()

MediaWiki\Minerva\Menu\Definitions::insertPreferencesItem ( Group $group)

Build and insert the Preferences link.

Parameters
Group$group

◆ insertRecentChanges()

MediaWiki\Minerva\Menu\Definitions::insertRecentChanges ( Group $group)

Build and insert the RecentChanges link.

Parameters
Group$group

◆ insertSpecialPages()

MediaWiki\Minerva\Menu\Definitions::insertSpecialPages ( Group $group)

Build and insert the SpecialPages link.

Parameters
Group$group

◆ msg()

MediaWiki\Minerva\Menu\Definitions::msg ( string $key)

Perform message localization.

Parameters
string$keyto localize
Returns
Message

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