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 getDisplayName(
17 PhabricatorProfileMenuItemConfiguration
$config) {
18 $default = $this->getDefaultName();
19 return $this->getNameFromConfig($config, $default);
22 public function getMenuItemTypeIcon() {
26 public function buildEditEngineFields(
27 PhabricatorProfileMenuItemConfiguration
$config) {
29 id(new PhabricatorTextEditField())
31 ->setLabel(pht('Name'))
32 ->setPlaceholder($this->getDefaultName())
33 ->setValue($config->getMenuItemProperty('name')),
37 protected function newMenuItemViewList(
38 PhabricatorProfileMenuItemConfiguration
$config) {
40 $project = $config->getProfileObject();
42 $id = $project->getID();
44 $name = $this->getDisplayName($config);
46 $uri = "/project/members/{$id}/";
48 $item = $this->newItemView()