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

Model for a menu entry that represents log-in / profile+logout pair of links. More...

+ Inheritance diagram for MediaWiki\Minerva\Menu\Entries\AuthMenuEntry:
+ Collaboration diagram for MediaWiki\Minerva\Menu\Entries\AuthMenuEntry:

Public Member Functions

 __construct (UserIdentity $user, MessageLocalizer $messageLocalizer, array $authLinksQuery)
 Initialize the Auth menu entry.
 
 getName ()
 @inheritDoc
 
 overrideProfileURL ( $customURL, $customLabel=null, $trackingCode=null)
 @inheritDoc
 
- Public Member Functions inherited from MediaWiki\Minerva\Menu\Entries\CompositeMenuEntry
 __construct (array $entries)
 
 getCSSClasses ()
 @inheritDoc
 
 getComponents ()
 @inheritDoc
 

Additional Inherited Members

- Public Attributes inherited from MediaWiki\Minerva\Menu\Entries\IProfileMenuEntry
const DEFAULT_PROFILE_TRACKING_CODE = 'profile'
 Default tracking code for clicks on profile menu link.
 

Detailed Description

Model for a menu entry that represents log-in / profile+logout pair of links.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Minerva\Menu\Entries\AuthMenuEntry::__construct ( UserIdentity $user,
MessageLocalizer $messageLocalizer,
array $authLinksQuery )

Initialize the Auth menu entry.

Parameters
UserIdentity$userCurrently logged in user/anon
MessageLocalizer$messageLocalizerused for text translation
array$authLinksQueryMapping of URI query parameter names to values.

Member Function Documentation

◆ getName()

MediaWiki\Minerva\Menu\Entries\AuthMenuEntry::getName ( )

◆ overrideProfileURL()

MediaWiki\Minerva\Menu\Entries\AuthMenuEntry::overrideProfileURL ( $customURL,
$customLabel = null,
$trackingCode = null )

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