Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1065584
PhabricatorDashboardPortalProfileMenuEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
854 B
Referenced Files
None
Subscribers
None
PhabricatorDashboardPortalProfileMenuEngine.php
View Options
<?php
final
class
PhabricatorDashboardPortalProfileMenuEngine
extends
PhabricatorProfileMenuEngine
{
protected
function
isMenuEngineConfigurable
()
{
return
true
;
}
protected
function
isMenuEnginePersonalizable
()
{
return
false
;
}
public
function
getItemURI
(
$path
)
{
$portal
=
$this
->
getProfileObject
();
return
$portal
->
getURI
().
$path
;
}
protected
function
getBuiltinProfileItems
(
$object
)
{
$items
=
array
();
$items
[]
=
$this
->
newManageItem
();
$items
[]
=
$this
->
newItem
()
->
setMenuItemKey
(
PhabricatorDashboardPortalMenuItem
::
MENUITEMKEY
)
->
setBuiltinKey
(
'manage'
)
->
setIsTailItem
(
true
);
return
$items
;
}
protected
function
newNoMenuItemsView
()
{
return
$this
->
newEmptyView
(
pht
(
'New Portal'
),
pht
(
'Use "Edit Menu" to add menu items to this portal.'
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jun 29, 12:00 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
260045
Default Alt Text
PhabricatorDashboardPortalProfileMenuEngine.php (854 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment