Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95962827
PhabricatorSettingsMainMenuBarExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Dec 21, 03:21
Size
701 B
Mime Type
text/x-php
Expires
Mon, Dec 23, 03:21 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
23088424
Attached To
rPH Phabricator
PhabricatorSettingsMainMenuBarExtension.php
View Options
<?php
final
class
PhabricatorSettingsMainMenuBarExtension
extends
PhabricatorMainMenuBarExtension
{
const
MAINMENUBARKEY
=
'settings'
;
public
function
buildMainMenus
()
{
$controller
=
$this
->
getController
();
$is_selected
=
(
$controller
instanceof
PhabricatorSettingsMainController
);
$bar_item
=
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Settings'
))
->
setIcon
(
'fa-wrench'
)
->
addClass
(
'core-menu-item'
)
->
setSelected
(
$is_selected
)
->
setHref
(
'/settings/'
)
->
setAural
(
pht
(
'Settings'
));
$settings_menu
=
id
(
new
PHUIMainMenuView
())
->
setMenuBarItem
(
$bar_item
)
->
setOrder
(
400
);
return
array
(
$settings_menu
,
);
}
}
Event Timeline
Log In to Comment