Differential D20358 Diff 48609 src/applications/people/menuitem/PhabricatorPeopleDetailsProfileMenuItem.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/menuitem/PhabricatorPeopleDetailsProfileMenuItem.php
Show All 29 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->getMenuProperty('name')), | ->setValue($config->getMenuProperty('name')), | ||||
); | ); | ||||
} | } | ||||
protected function newNavigationMenuItems( | protected function newMenuItemViewList( | ||||
PhabricatorProfileMenuItemConfiguration $config) { | PhabricatorProfileMenuItemConfiguration $config) { | ||||
$user = $config->getProfileObject(); | $user = $config->getProfileObject(); | ||||
$href = urisprintf( | $uri = urisprintf( | ||||
'/p/%s/', | '/p/%s/', | ||||
$user->getUsername()); | $user->getUsername()); | ||||
$item = $this->newItem() | $item = $this->newItemView() | ||||
->setHref($href) | ->setURI($uri) | ||||
->setName(pht('Profile')) | ->setName(pht('Profile')) | ||||
->setIcon('fa-user'); | ->setIcon('fa-user'); | ||||
return array( | return array( | ||||
$item, | $item, | ||||
); | ); | ||||
} | } | ||||
} | } |