Changeset View
Changeset View
Standalone View
Standalone View
src/applications/home/menuitem/PhabricatorHomeProfileMenuItem.php
<?php | <?php | ||||
final class PhabricatorHomeProfileMenuItem | final class PhabricatorHomeProfileMenuItem | ||||
extends PhabricatorProfileMenuItem { | extends PhabricatorProfileMenuItem { | ||||
const MENUITEMKEY = 'home.dashboard'; | const MENUITEMKEY = 'home.dashboard'; | ||||
public function getMenuItemTypeName() { | public function getMenuItemTypeName() { | ||||
return pht('Built-in Homepage'); | return pht('Built-in Homepage'); | ||||
} | } | ||||
private function getDefaultName() { | private function getDefaultName() { | ||||
return pht('Home'); | return pht('Home'); | ||||
} | } | ||||
public function getMenuItemTypeIcon() { | |||||
return 'fa-home'; | |||||
} | |||||
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 46 Lines • Show Last 20 Lines |