3 final class PhabricatorProjectMembersProfileMenuItem
4 extends PhabricatorProfileMenuItem
{
6 const MENUITEMKEY
= 'project.members';
8 public function getMenuItemTypeName() {
9 return pht('Project Members');
12 private function getDefaultName() {
13 return pht('Members');
16 public function getMenuItemTypeIcon() {
20 public function getDisplayName(
21 PhabricatorProfileMenuItemConfiguration
$config) {
22 $name = $config->getMenuItemProperty('name');
28 return $this->getDefaultName();
31 public function buildEditEngineFields(
32 PhabricatorProfileMenuItemConfiguration
$config) {
34 id(new PhabricatorTextEditField())
36 ->setLabel(pht('Name'))
37 ->setPlaceholder($this->getDefaultName())
38 ->setValue($config->getMenuItemProperty('name')),
42 protected function newMenuItemViewList(
43 PhabricatorProfileMenuItemConfiguration
$config) {
45 $project = $config->getProfileObject();
47 $id = $project->getID();
49 $name = $this->getDisplayName($config);
51 $uri = "/project/members/{$id}/";
53 $item = $this->newItemView()