array( '(?:panel/(?P[^/]+)/)?' => 'PhabricatorSettingsMainController', 'adjust/' => 'PhabricatorSettingsAdjustController', ), ); } public function getApplicationGroup() { return self::GROUP_UTILITIES; } public function buildMainMenuItems( PhabricatorUser $user, PhabricatorController $controller = null) { $items = array(); if ($user->isLoggedIn() && $user->isUserActivated()) { $selected = ($controller instanceof PhabricatorSettingsMainController); $item = new PHUIListItemView(); $item->setName(pht('Settings')); $item->setIcon('settings'); $item->addClass('core-menu-item'); $item->setSelected($selected); $item->setHref('/settings/'); $items[] = $item; } return $items; } }