3 final class PhabricatorRemarkupEditField
4 extends PhabricatorEditField
{
6 protected function newControl() {
7 return new PhabricatorRemarkupControl();
10 protected function newHTTPParameterType() {
11 return new AphrontRemarkupHTTPParameterType();
14 protected function newConduitParameterType() {
15 return new ConduitStringParameterType();
18 protected function newBulkParameterType() {
19 return new BulkRemarkupParameterType();
22 public function getValueForTransaction() {
23 $value = $this->getValue();
25 if ($value instanceof RemarkupValue
) {
26 $value = $value->getCorpus();
32 public function getMetadata() {
35 $value = $this->getValue();
36 if ($value instanceof RemarkupValue
) {
37 $defaults['remarkup.control'] = $value->getMetadata();
40 $metadata = parent
::getMetadata();
41 $metadata = $metadata +
$defaults;