Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93658382
PhabricatorDividerProfilePanel.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, Nov 30, 12:32
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Dec 2, 12:32 (2 d)
Engine
blob
Format
Raw Data
Handle
22675949
Attached To
rPH Phabricator
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
(
PhabricatorProfilePanelConfiguration
$config
)
{
return
pht
(
"
\x
E2
\x
80
\x
94"
);
}
public
function
buildEditEngineFields
(
PhabricatorProfilePanelConfiguration
$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
(
PhabricatorProfilePanelConfiguration
$config
)
{
$item
=
$this
->
newItem
()
->
addClass
(
'phui-divider'
);
return
array
(
$item
,
);
}
}
Event Timeline
Log In to Comment