array( '(?:page/(?P[^/]+)/)?' => 'PhabricatorUserSettingsController', ), ); } public function buildMainMenuItems( PhabricatorUser $user, PhabricatorController $controller) { $items = array(); if ($user->isLoggedIn()) { require_celerity_resource('phabricator-glyph-css'); $item = new PhabricatorMainMenuIconView(); $item->setName(pht('Settings')); $item->addClass('glyph glyph-settings'); $item->setHref('/settings/'); $item->setSortOrder(0.90); $items[] = $item; } return $items; } }