Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92675649
PhabricatorDividerProfileMenuItem.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
Fri, Nov 22, 16:16
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 16:16 (2 d)
Engine
blob
Format
Raw Data
Handle
22484928
Attached To
rPH Phabricator
PhabricatorDividerProfileMenuItem.php
View Options
<?php
final
class
PhabricatorDividerProfileMenuItem
extends
PhabricatorProfileMenuItem
{
const
MENUITEMKEY
=
'divider'
;
public
function
getMenuItemTypeIcon
()
{
return
'fa-minus'
;
}
public
function
getMenuItemTypeName
()
{
return
pht
(
'Divider'
);
}
public
function
canAddToObject
(
$object
)
{
return
true
;
}
public
function
getDisplayName
(
PhabricatorProfileMenuItemConfiguration
$config
)
{
return
pht
(
"
\x
E2
\x
80
\x
94"
);
}
public
function
buildEditEngineFields
(
PhabricatorProfileMenuItemConfiguration
$config
)
{
return
array
(
id
(
new
PhabricatorInstructionsEditField
())
->
setValue
(
pht
(
'This is a visual divider which you can use to separate '
.
'sections in the menu. It does not have any configurable '
.
'options.'
)),
);
}
protected
function
newNavigationMenuItems
(
PhabricatorProfileMenuItemConfiguration
$config
)
{
$item
=
$this
->
newItem
()
->
setType
(
PHUIListItemView
::
TYPE_DIVIDER
)
->
addClass
(
'phui-divider'
);
return
array
(
$item
,
);
}
}
Event Timeline
Log In to Comment