Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/editor/PhabricatorPasteEditEngine.php
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | return array( | ||||
| ->setLabel(pht('Language')) | ->setLabel(pht('Language')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| 'Programming language to interpret the paste as for syntax '. | 'Programming language to interpret the paste as for syntax '. | ||||
| 'highlighting. By default, the language is inferred from the '. | 'highlighting. By default, the language is inferred from the '. | ||||
| 'title.')) | 'title.')) | ||||
| ->setAliases(array('lang')) | ->setAliases(array('lang')) | ||||
| ->setTransactionType(PhabricatorPasteTransaction::TYPE_LANGUAGE) | ->setTransactionType(PhabricatorPasteTransaction::TYPE_LANGUAGE) | ||||
| ->setIsCopyable(true) | |||||
| ->setValue($object->getLanguage()) | ->setValue($object->getLanguage()) | ||||
| ->setOptions($langs), | ->setOptions($langs), | ||||
| id(new PhabricatorSelectEditField()) | id(new PhabricatorSelectEditField()) | ||||
| ->setKey('status') | ->setKey('status') | ||||
| ->setLabel(pht('Status')) | ->setLabel(pht('Status')) | ||||
| ->setDescription(pht('Archive the paste.')) | ->setDescription(pht('Archive the paste.')) | ||||
| ->setTransactionType(PhabricatorPasteTransaction::TYPE_STATUS) | ->setTransactionType(PhabricatorPasteTransaction::TYPE_STATUS) | ||||
| ->setValue($object->getStatus()) | ->setValue($object->getStatus()) | ||||
| Show All 13 Lines | |||||