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

Note: Used by Extension:GrowthExperiments. More...

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

Public Member Functions

 overrideProfileURL ( $customURL, $customLabel=null, $trackingCode=null)
 Override the href for the profile component for logged in users Note: the tracking code will be prefixed with menu.
 
- Public Member Functions inherited from MediaWiki\Minerva\Menu\Entries\IMenuEntry
 getName ()
 Get the menu entry name/identifier.
 
 getCSSClasses ()
 Get the CSS classes that should be applied to the element.
 
 getComponents ()
 Returns the list of components of the menu entry.
 

Public Attributes

const DEFAULT_PROFILE_TRACKING_CODE = 'profile'
 Default tracking code for clicks on profile menu link.
 

Detailed Description

Note: Used by Extension:GrowthExperiments.

Member Function Documentation

◆ overrideProfileURL()

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

Override the href for the profile component for logged in users Note: the tracking code will be prefixed with menu.

once it gets rendered

Parameters
string$customURLA new href for profile entry
string | null$customLabelA new label for profile entry. Null if you don't want to override it
string | null$trackingCodenew tracking code
Returns
IProfileMenuEntry

Implemented in MediaWiki\Minerva\Menu\Entries\AuthMenuEntry, and MediaWiki\Minerva\Menu\Entries\ProfileMenuEntry.

Member Data Documentation

◆ DEFAULT_PROFILE_TRACKING_CODE

const MediaWiki\Minerva\Menu\Entries\IProfileMenuEntry::DEFAULT_PROFILE_TRACKING_CODE = 'profile'

Default tracking code for clicks on profile menu link.

This tracking code will be prefixed with menu.


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