Path: blob/master/src/applications/dashboard/engine/PhabricatorDashboardPortalProfileMenuEngine.php
12242 views
<?php12final class PhabricatorDashboardPortalProfileMenuEngine3extends PhabricatorProfileMenuEngine {45protected function isMenuEngineConfigurable() {6return true;7}89protected function isMenuEnginePersonalizable() {10return false;11}1213public function getItemURI($path) {14$portal = $this->getProfileObject();1516return $portal->getURI().$path;17}1819protected function getBuiltinProfileItems($object) {20$items = array();2122$items[] = $this->newDividerItem('tail');2324$items[] = $this->newManageItem();2526$items[] = $this->newItem()27->setMenuItemKey(PhabricatorDashboardPortalMenuItem::MENUITEMKEY)28->setBuiltinKey('manage')29->setIsTailItem(true);3031return $items;32}3334protected function newNoMenuItemsView(array $items) {35$object = $this->getProfileObject();36$builtins = $this->getBuiltinProfileItems($object);3738if (count($items) <= count($builtins)) {39return $this->newEmptyView(40pht('New Portal'),41pht('Use "Edit Menu" to add menu items to this portal.'));42} else {43return $this->newEmptyValue(44pht('No Portal Content'),45pht(46'None of the visible menu items in this portal can render any '.47'content.'));48}49}5051}525354