Differential D18836 Diff 45192 src/applications/project/menuitem/PhabricatorProjectDetailsProfileMenuItem.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/menuitem/PhabricatorProjectDetailsProfileMenuItem.php
| <?php | <?php | ||||
| final class PhabricatorProjectDetailsProfileMenuItem | final class PhabricatorProjectDetailsProfileMenuItem | ||||
| extends PhabricatorProfileMenuItem { | extends PhabricatorProfileMenuItem { | ||||
| const MENUITEMKEY = 'project.details'; | const MENUITEMKEY = 'project.details'; | ||||
| public function getMenuItemTypeName() { | public function getMenuItemTypeName() { | ||||
| return pht('Project Details'); | return pht('Project Details'); | ||||
| } | } | ||||
| private function getDefaultName() { | private function getDefaultName() { | ||||
| return pht('Project Details'); | return pht('Project Details'); | ||||
| } | } | ||||
| public function canHideMenuItem( | |||||
| PhabricatorProfileMenuItemConfiguration $config) { | |||||
| return false; | |||||
| } | |||||
| public function canMakeDefault( | public function canMakeDefault( | ||||
| PhabricatorProfileMenuItemConfiguration $config) { | PhabricatorProfileMenuItemConfiguration $config) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| public function getDisplayName( | public function getDisplayName( | ||||
| PhabricatorProfileMenuItemConfiguration $config) { | PhabricatorProfileMenuItemConfiguration $config) { | ||||
| $name = $config->getMenuItemProperty('name'); | $name = $config->getMenuItemProperty('name'); | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||