MinervaNeue
A responsive mobile first skin
|
Note: Used by Extension:GrowthExperiments. More...
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. | |
Note: Used by Extension:GrowthExperiments.
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
string | $customURL | A new href for profile entry |
string | null | $customLabel | A new label for profile entry. Null if you don't want to override it |
string | null | $trackingCode | new tracking code |
Implemented in MediaWiki\Minerva\Menu\Entries\AuthMenuEntry, and MediaWiki\Minerva\Menu\Entries\ProfileMenuEntry.
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.