Differential D20355 Diff 48606 src/applications/home/menuitem/PhabricatorHomeLauncherProfileMenuItem.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/home/menuitem/PhabricatorHomeLauncherProfileMenuItem.php
<?php | <?php | ||||
final class PhabricatorHomeLauncherProfileMenuItem | final class PhabricatorHomeLauncherProfileMenuItem | ||||
extends PhabricatorProfileMenuItem { | extends PhabricatorProfileMenuItem { | ||||
const MENUITEMKEY = 'home.launcher.menu'; | const MENUITEMKEY = 'home.launcher.menu'; | ||||
public function getMenuItemTypeName() { | public function getMenuItemTypeName() { | ||||
return pht('More Applications'); | return pht('More Applications'); | ||||
} | } | ||||
private function getDefaultName() { | private function getDefaultName() { | ||||
return pht('More Applications'); | return pht('More Applications'); | ||||
} | } | ||||
public function getMenuItemTypeIcon() { | |||||
return 'fa-ellipsis-h'; | |||||
} | |||||
public function canHideMenuItem( | public function canHideMenuItem( | ||||
PhabricatorProfileMenuItemConfiguration $config) { | PhabricatorProfileMenuItemConfiguration $config) { | ||||
return false; | return false; | ||||
} | } | ||||
public function canMakeDefault( | public function canMakeDefault( | ||||
PhabricatorProfileMenuItemConfiguration $config) { | PhabricatorProfileMenuItemConfiguration $config) { | ||||
return false; | return false; | ||||
Show All 21 Lines | public function buildEditEngineFields( | ||||
); | ); | ||||
} | } | ||||
protected function newNavigationMenuItems( | protected function newNavigationMenuItems( | ||||
PhabricatorProfileMenuItemConfiguration $config) { | PhabricatorProfileMenuItemConfiguration $config) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$name = $this->getDisplayName($config); | $name = $this->getDisplayName($config); | ||||
$icon = 'fa-globe'; | $icon = 'fa-ellipsis-h'; | ||||
$href = '/applications/'; | $href = '/applications/'; | ||||
$item = $this->newItem() | $item = $this->newItem() | ||||
->setHref($href) | ->setHref($href) | ||||
->setName($name) | ->setName($name) | ||||
->setIcon($icon); | ->setIcon($icon); | ||||
return array( | return array( | ||||
$item, | $item, | ||||
); | ); | ||||
} | } | ||||
} | } |