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