Differential D14653 Diff 35450 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 47 Lines • ▼ Show 20 Lines | $projects_field = id(new PhabricatorProjectsEditField()) | ||||
| ->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')) | ||||
| ->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')) | |||||
| ->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, | ||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||