Remove product literal strings in "pht()", part 8
[phabricator.git] / src / applications / maniphest / relationship / ManiphestTaskHasSubtaskRelationship.php
blob2fb69e90fb105a75c4d06666535a70f1bb7ea976
1 <?php
3 final class ManiphestTaskHasSubtaskRelationship
4 extends ManiphestTaskRelationship {
6 const RELATIONSHIPKEY = 'task.has-subtask';
8 public function getEdgeConstant() {
9 return ManiphestTaskDependsOnTaskEdgeType::EDGECONST;
12 protected function getActionName() {
13 return pht('Edit Subtasks');
16 protected function getActionIcon() {
17 return 'fa-chevron-circle-down';
20 public function canRelateObjects($src, $dst) {
21 return ($dst instanceof ManiphestTask);
24 public function shouldAppearInActionMenu() {
25 return false;
28 public function getDialogTitleText() {
29 return pht('Edit Subtasks');
32 public function getDialogHeaderText() {
33 return pht('Current Subtasks');
36 public function getDialogButtonText() {
37 return pht('Save Subtasks');
40 protected function newRelationshipSource() {
41 return id(new ManiphestTaskRelationshipSource())
42 ->setSelectedFilter('open');