Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/editor/PhabricatorPasteEditEngine.php
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | return array( | ||||
->setConduitDescription(pht('Change the paste content.')) | ->setConduitDescription(pht('Change the paste content.')) | ||||
->setConduitTypeDescription(pht('New body content.')) | ->setConduitTypeDescription(pht('New body content.')) | ||||
->setValue($object->getRawContent()), | ->setValue($object->getRawContent()), | ||||
id(new PhabricatorSelectEditField()) | id(new PhabricatorSelectEditField()) | ||||
->setKey('status') | ->setKey('status') | ||||
->setLabel(pht('Status')) | ->setLabel(pht('Status')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
PhabricatorPasteStatusTransaction::TRANSACTIONTYPE) | PhabricatorPasteStatusTransaction::TRANSACTIONTYPE) | ||||
->setIsConduitOnly(true) | ->setIsFormField(false) | ||||
->setOptions(PhabricatorPaste::getStatusNameMap()) | ->setOptions(PhabricatorPaste::getStatusNameMap()) | ||||
->setDescription(pht('Active or archived status.')) | ->setDescription(pht('Active or archived status.')) | ||||
->setConduitDescription(pht('Active or archive the paste.')) | ->setConduitDescription(pht('Active or archive the paste.')) | ||||
->setConduitTypeDescription(pht('New paste status constant.')) | ->setConduitTypeDescription(pht('New paste status constant.')) | ||||
->setValue($object->getStatus()), | ->setValue($object->getStatus()), | ||||
); | ); | ||||
} | } | ||||
} | } |