@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 recaptime-dev/main 35 lines 799 B view raw
1<?php 2 3final class PhabricatorEditEngineDefaultCreateTransaction 4 extends PhabricatorEditEngineTransactionType { 5 6 const TRANSACTIONTYPE = 'editengine.config.default.create'; 7 8 public function generateOldValue($object) { 9 return (int)$object->getIsDefault(); 10 } 11 12 public function generateNewValue($object, $value) { 13 return (int)$value; 14 } 15 16 public function applyInternalEffects($object, $value) { 17 $object->setIsDefault($value); 18 } 19 20 public function getTitle() { 21 $old = $this->getOldValue(); 22 $new = $this->getNewValue(); 23 24 if ($new) { 25 return pht( 26 '%s added this form to the "Create" menu.', 27 $this->renderAuthor()); 28 } else { 29 return pht( 30 '%s removed this form from the "Create" menu.', 31 $this->renderAuthor()); 32 } 33 } 34 35}