Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F445557
PhabricatorDividerProfilePanel.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
PhabricatorDividerProfilePanel.php
View Options
<?php
final
class
PhabricatorDividerProfilePanel
extends
PhabricatorProfilePanel
{
const
PANELKEY
=
'divider'
;
public
function
getPanelTypeIcon
()
{
return
'fa-minus'
;
}
public
function
getPanelTypeName
()
{
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
()
->
addClass
(
'phui-divider'
);
return
array
(
$item
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 1:35 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
65735
Default Alt Text
PhabricatorDividerProfilePanel.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment