Differential D14699 Diff 35551 src/applications/project/editor/PhabricatorProjectsEditEngineExtension.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/editor/PhabricatorProjectsEditEngineExtension.php
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | public function buildCustomEditFields( | ||||
| } | } | ||||
| $projects_field = id(new PhabricatorProjectsEditField()) | $projects_field = id(new PhabricatorProjectsEditField()) | ||||
| ->setKey('projectPHIDs') | ->setKey('projectPHIDs') | ||||
| ->setLabel(pht('Projects')) | ->setLabel(pht('Projects')) | ||||
| ->setEditTypeKey('projects') | ->setEditTypeKey('projects') | ||||
| ->setDescription(pht('Add or remove associated projects.')) | ->setDescription(pht('Add or remove associated projects.')) | ||||
| ->setAliases(array('project', 'projects')) | ->setAliases(array('project', 'projects')) | ||||
| ->setIsCopyable(true) | |||||
| ->setUseEdgeTransactions(true) | ->setUseEdgeTransactions(true) | ||||
| ->setEdgeTransactionDescriptions( | ->setEdgeTransactionDescriptions( | ||||
| pht('Add projects.'), | pht('Add projects.'), | ||||
| pht('Remove projects.'), | pht('Remove projects.'), | ||||
| pht('Set associated projects, overwriting current value.')) | pht('Set associated projects, overwriting current value.')) | ||||
| ->setCommentActionLabel(pht('Add Projects')) | ->setCommentActionLabel(pht('Add Projects')) | ||||
| ->setTransactionType($edge_type) | ->setTransactionType($edge_type) | ||||
| ->setMetadataValue('edge:type', $project_edge_type) | ->setMetadataValue('edge:type', $project_edge_type) | ||||
| ->setValue($project_phids); | ->setValue($project_phids); | ||||
| return array( | return array( | ||||
| $projects_field, | $projects_field, | ||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||