Changeset View
Changeset View
Standalone View
Standalone View
src/applications/home/menuitem/PhabricatorHomeProfileMenuItem.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | return array( | ||||
id(new PhabricatorTextEditField()) | id(new PhabricatorTextEditField()) | ||||
->setKey('name') | ->setKey('name') | ||||
->setLabel(pht('Name')) | ->setLabel(pht('Name')) | ||||
->setPlaceholder($this->getDefaultName()) | ->setPlaceholder($this->getDefaultName()) | ||||
->setValue($config->getMenuItemProperty('name')), | ->setValue($config->getMenuItemProperty('name')), | ||||
); | ); | ||||
} | } | ||||
protected function newNavigationMenuItems( | protected function newMenuItemViewList( | ||||
PhabricatorProfileMenuItemConfiguration $config) { | PhabricatorProfileMenuItemConfiguration $config) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$name = $this->getDisplayName($config); | $name = $this->getDisplayName($config); | ||||
$icon = 'fa-home'; | $icon = 'fa-home'; | ||||
$href = $this->getItemViewURI($config); | $uri = $this->getItemViewURI($config); | ||||
$item = $this->newItem() | $item = $this->newItemView() | ||||
->setHref($href) | ->setURI($uri) | ||||
->setName($name) | ->setName($name) | ||||
->setIcon($icon); | ->setIcon($icon); | ||||
return array( | return array( | ||||
$item, | $item, | ||||
); | ); | ||||
} | } | ||||
} | } |