Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / maniphest / relationship / ManiphestTaskHasParentRelationship.php
blob6cfd11ff0958fee14d73dbdd567ebbe854033107
1 <?php
3 final class ManiphestTaskHasParentRelationship
4 extends ManiphestTaskRelationship {
6 const RELATIONSHIPKEY = 'task.has-parent';
8 public function getEdgeConstant() {
9 return ManiphestTaskDependedOnByTaskEdgeType::EDGECONST;
12 protected function getActionName() {
13 return pht('Edit Parent Tasks');
16 protected function getActionIcon() {
17 return 'fa-chevron-circle-up';
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 Parent Tasks');
32 public function getDialogHeaderText() {
33 return pht('Current Parent Tasks');
36 public function getDialogButtonText() {
37 return pht('Save Parent Tasks');
40 protected function newRelationshipSource() {
41 return id(new ManiphestTaskRelationshipSource())
42 ->setSelectedFilter('open');