Differential D20355 Diff 48606 src/applications/dashboard/engine/PhabricatorDashboardPortalProfileMenuEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/engine/PhabricatorDashboardPortalProfileMenuEngine.php
Show All 18 Lines | final class PhabricatorDashboardPortalProfileMenuEngine | ||||
protected function getBuiltinProfileItems($object) { | protected function getBuiltinProfileItems($object) { | ||||
$items = array(); | $items = array(); | ||||
$items[] = $this->newManageItem(); | $items[] = $this->newManageItem(); | ||||
$items[] = $this->newItem() | $items[] = $this->newItem() | ||||
->setMenuItemKey(PhabricatorDashboardPortalMenuItem::MENUITEMKEY) | ->setMenuItemKey(PhabricatorDashboardPortalMenuItem::MENUITEMKEY) | ||||
->setBuiltinKey('manage'); | ->setBuiltinKey('manage') | ||||
->setIsTailItem(true); | |||||
return $items; | return $items; | ||||
} | } | ||||
protected function newNoMenuItemsView() { | protected function newNoMenuItemsView() { | ||||
return $this->newEmptyView( | return $this->newEmptyView( | ||||
pht('New Portal'), | pht('New Portal'), | ||||
pht('Use "Edit Menu" to add menu items to this portal.')); | pht('Use "Edit Menu" to add menu items to this portal.')); | ||||
} | } | ||||
} | } |