Differential D20595 Diff 49153 src/applications/transactions/editor/PhabricatorEditEngineConfigurationEditEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editor/PhabricatorEditEngineConfigurationEditEngine.php
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | final class PhabricatorEditEngineConfigurationEditEngine | ||||
protected function buildCustomEditFields($object) { | protected function buildCustomEditFields($object) { | ||||
return array( | return array( | ||||
id(new PhabricatorTextEditField()) | id(new PhabricatorTextEditField()) | ||||
->setKey('name') | ->setKey('name') | ||||
->setLabel(pht('Name')) | ->setLabel(pht('Name')) | ||||
->setDescription(pht('Name of the form.')) | ->setDescription(pht('Name of the form.')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorEditEngineConfigurationTransaction::TYPE_NAME) | PhabricatorEditEngineNameTransaction::TRANSACTIONTYPE) | ||||
->setValue($object->getName()), | ->setValue($object->getName()), | ||||
id(new PhabricatorRemarkupEditField()) | id(new PhabricatorRemarkupEditField()) | ||||
->setKey('preamble') | ->setKey('preamble') | ||||
->setLabel(pht('Preamble')) | ->setLabel(pht('Preamble')) | ||||
->setDescription(pht('Optional instructions, shown above the form.')) | ->setDescription(pht('Optional instructions, shown above the form.')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorEditEngineConfigurationTransaction::TYPE_PREAMBLE) | PhabricatorEditEnginePreambleTransaction::TRANSACTIONTYPE) | ||||
->setValue($object->getPreamble()), | ->setValue($object->getPreamble()), | ||||
); | ); | ||||
} | } | ||||
} | } |