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

Used to build default (available for everyone by default) main menu. More...

+ Inheritance diagram for MediaWiki\Minerva\Menu\Main\DefaultMainMenuBuilder:
+ Collaboration diagram for MediaWiki\Minerva\Menu\Main\DefaultMainMenuBuilder:

Public Member Functions

 __construct ( $showMobileOptions, $showDonateLink, User $user, Definitions $definitions, UserIdentityUtils $userIdentityUtils)
 Initialize the Default Main Menu builder.
 
 getDiscoveryGroup (array $navigationTools)
 @inheritDoc
 
 getDonateGroup ()
 @inheritDoc
 
 getInteractionToolsGroup ()
 @inheritDoc
 
 getSiteLinks ()
 @inheritDoc
 
 getSettingsGroup ()
 Builds the anonymous settings group.
 
 getPersonalToolsGroup (array $personalTools)
 Builds the personal tools menu item group.
 

Detailed Description

Used to build default (available for everyone by default) main menu.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Minerva\Menu\Main\DefaultMainMenuBuilder::__construct ( $showMobileOptions,
$showDonateLink,
User $user,
Definitions $definitions,
UserIdentityUtils $userIdentityUtils )

Initialize the Default Main Menu builder.

Parameters
bool$showMobileOptionsShow MobileOptions instead of Preferences
bool$showDonateLinkwhether to show the donate link
User$userThe current user
Definitions$definitionsA menu items definitions set
UserIdentityUtils$userIdentityUtils

Member Function Documentation

◆ getDiscoveryGroup()

MediaWiki\Minerva\Menu\Main\DefaultMainMenuBuilder::getDiscoveryGroup ( array $navigationTools)

◆ getDonateGroup()

MediaWiki\Minerva\Menu\Main\DefaultMainMenuBuilder::getDonateGroup ( )

◆ getInteractionToolsGroup()

MediaWiki\Minerva\Menu\Main\DefaultMainMenuBuilder::getInteractionToolsGroup ( )

◆ getPersonalToolsGroup()

MediaWiki\Minerva\Menu\Main\DefaultMainMenuBuilder::getPersonalToolsGroup ( array $personalTools)

Builds the personal tools menu item group.

... by adding the Watchlist, Settings, and Log{in,out} menu items in the given order.

@inheritDoc

Implements MediaWiki\Minerva\Menu\Main\IMainMenuBuilder.

◆ getSettingsGroup()

MediaWiki\Minerva\Menu\Main\DefaultMainMenuBuilder::getSettingsGroup ( )

Builds the anonymous settings group.

@inheritDoc

Implements MediaWiki\Minerva\Menu\Main\IMainMenuBuilder.

◆ getSiteLinks()

MediaWiki\Minerva\Menu\Main\DefaultMainMenuBuilder::getSiteLinks ( )

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