Differential D20358 Diff 48609 src/applications/project/menuitem/PhabricatorProjectWorkboardProfileMenuItem.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/menuitem/PhabricatorProjectWorkboardProfileMenuItem.php
Show First 20 Lines • Show All 50 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) { | ||||
$project = $config->getProfileObject(); | $project = $config->getProfileObject(); | ||||
$id = $project->getID(); | $id = $project->getID(); | ||||
$href = $project->getWorkboardURI(); | $uri = $project->getWorkboardURI(); | ||||
$name = $this->getDisplayName($config); | $name = $this->getDisplayName($config); | ||||
$item = $this->newItem() | $item = $this->newItemView() | ||||
->setHref($href) | ->setURI($uri) | ||||
->setName($name) | ->setName($name) | ||||
->setIcon('fa-columns'); | ->setIcon('fa-columns'); | ||||
return array( | return array( | ||||
$item, | $item, | ||||
); | ); | ||||
} | } | ||||
} | } |