3 final class PhabricatorDashboardPortalProfileMenuEngine
4 extends PhabricatorProfileMenuEngine
{
6 protected function isMenuEngineConfigurable() {
10 protected function isMenuEnginePersonalizable() {
14 public function getItemURI($path) {
15 $portal = $this->getProfileObject();
17 return $portal->getURI().$path;
20 protected function getBuiltinProfileItems($object) {
23 $items[] = $this->newDividerItem('tail');
25 $items[] = $this->newManageItem();
27 $items[] = $this->newItem()
28 ->setMenuItemKey(PhabricatorDashboardPortalMenuItem
::MENUITEMKEY
)
29 ->setBuiltinKey('manage')
30 ->setIsTailItem(true);
35 protected function newNoMenuItemsView(array $items) {
36 $object = $this->getProfileObject();
37 $builtins = $this->getBuiltinProfileItems($object);
39 if (count($items) <= count($builtins)) {
40 return $this->newEmptyView(
42 pht('Use "Edit Menu" to add menu items to this portal.'));
44 return $this->newEmptyValue(
45 pht('No Portal Content'),
47 'None of the visible menu items in this portal can render any '.