Differential D17044 Diff 41007 src/applications/differential/editor/DifferentialRevisionEditEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/editor/DifferentialRevisionEditEngine.php
| Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | protected function getObjectName() { | ||||
| return pht('Revision'); | return pht('Revision'); | ||||
| } | } | ||||
| protected function getObjectViewURI($object) { | protected function getObjectViewURI($object) { | ||||
| return $object->getURI(); | return $object->getURI(); | ||||
| } | } | ||||
| protected function buildCustomEditFields($object) { | protected function buildCustomEditFields($object) { | ||||
| return array(); | return array( | ||||
| id(new PhabricatorTextEditField()) | |||||
| ->setKey('title') | |||||
| ->setLabel(pht('Title')) | |||||
| ->setTransactionType( | |||||
| DifferentialRevisionTitleTransaction::TRANSACTIONTYPE) | |||||
| ->setDescription(pht('The title of the revision.')) | |||||
| ->setConduitDescription(pht('Retitle the revision.')) | |||||
| ->setConduitTypeDescription(pht('New revision title.')) | |||||
| ->setValue($object->getTitle()), | |||||
| ); | |||||
| } | } | ||||
| } | } | ||||