Debian Codegraph @

skins/MinervaNeue/includes/Menu/Entries/IProfileMenuEntry.php

raw symbols SCIP
1 <?php
2 /**
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 */
17
18 namespace MediaWiki\Minerva\Menu\Entries;
19
20 /**
21 * Note: Used by Extension:GrowthExperiments
22 */
23 interface IProfileMenuEntry extends IMenuEntry {
24 /**
25 * Default tracking code for clicks on profile menu link
26 *
27 * This tracking code will be prefixed with `menu.`
28 */
29 public const DEFAULT_PROFILE_TRACKING_CODE = 'profile';
30
31 /**
32 * Override the href for the profile component for logged in users
33 * Note: the tracking code will be prefixed with `menu.` once it gets rendered
34 * @param string $customURL A new href for profile entry
35 * @param string|null $customLabel A new label for profile entry. Null if you don't want to
36 * override it
37 * @param string|null $trackingCode new tracking code
38 * @return IProfileMenuEntry
39 */
40 public function overrideProfileURL(
41 $customURL, $customLabel = null, $trackingCode = null
42 ): self;
43 }