@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 PhabricatorProjectTriggerEditor
4 extends PhabricatorApplicationTransactionEditor {
5
6 public function getEditorApplicationClass() {
7 return PhabricatorProjectApplication::class;
8 }
9
10 public function getEditorObjectsDescription() {
11 return pht('Triggers');
12 }
13
14 public function getCreateObjectTitle($author, $object) {
15 return pht('%s created this trigger.', $author);
16 }
17
18 public function getCreateObjectTitleForFeed($author, $object) {
19 return pht('%s created %s.', $author, $object);
20 }
21
22 public function getTransactionTypes() {
23 $types = parent::getTransactionTypes();
24
25 $types[] = PhabricatorTransactions::TYPE_EDIT_POLICY;
26
27 return $types;
28 }
29
30 protected function supportsSearch() {
31 return true;
32 }
33
34}