@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorProjectRemoveHeraldAction
4 extends PhabricatorProjectHeraldAction {
5
6 const ACTIONCONST = 'projects.remove';
7
8 public function getHeraldActionName() {
9 return pht('Remove projects');
10 }
11
12 public function applyEffect($object, HeraldEffect $effect) {
13 return $this->applyProjects($effect->getTarget(), $is_add = false);
14 }
15
16 public function getHeraldActionStandardType() {
17 return self::STANDARD_PHID_LIST;
18 }
19
20 protected function getDatasource() {
21 return new PhabricatorProjectDatasource();
22 }
23
24 public function renderActionDescription($value) {
25 return pht('Remove projects: %s.', $this->renderHandleList($value));
26 }
27
28}