@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

at upstream/main 38 lines 1.0 kB view raw
1<?php 2 3final class PhabricatorAuthContactNumberEditor 4 extends PhabricatorApplicationTransactionEditor { 5 6 public function getEditorApplicationClass() { 7 return PhabricatorAuthApplication::class; 8 } 9 10 public function getEditorObjectsDescription() { 11 return pht('Contact Numbers'); 12 } 13 14 public function getCreateObjectTitle($author, $object) { 15 return pht('%s created this contact number.', $author); 16 } 17 18 public function getCreateObjectTitleForFeed($author, $object) { 19 return pht('%s created %s.', $author, $object); 20 } 21 22 protected function didCatchDuplicateKeyException( 23 PhabricatorLiskDAO $object, 24 array $xactions, 25 Exception $ex) { 26 27 $errors = array(); 28 $errors[] = new PhabricatorApplicationTransactionValidationError( 29 PhabricatorAuthContactNumberNumberTransaction::TRANSACTIONTYPE, 30 pht('Duplicate'), 31 pht('This contact number is already in use.'), 32 null); 33 34 throw new PhabricatorApplicationTransactionValidationException($errors); 35 } 36 37 38}