Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F454425
PhabricatorDividerProfileMenuItem.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 4:58 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
69559
Default Alt Text
PhabricatorDividerProfileMenuItem.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment