Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2890306
PhabricatorDividerProfileMenuItem.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
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
(
"\xE2\x80\x94"
)
;
}
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
newMenuItemViewList
(
PhabricatorProfileMenuItemConfiguration
$config
)
{
$item
=
$this
->
newItemView
(
)
->
setIsDivider
(
true
)
;
return
array
(
$item
,
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 13:22 (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1125018
Default Alt Text
PhabricatorDividerProfileMenuItem.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment