Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/field/PhabricatorCustomField.php
Show First 20 Lines • Show All 1,139 Lines • ▼ Show 20 Lines | protected function newEditField() { | ||||
return $field; | return $field; | ||||
} | } | ||||
protected function newStandardEditField() { | protected function newStandardEditField() { | ||||
if ($this->proxy) { | if ($this->proxy) { | ||||
return $this->proxy->newStandardEditField(); | return $this->proxy->newStandardEditField(); | ||||
} | } | ||||
if (!$this->shouldAppearInEditView()) { | if ($this->shouldAppearInEditView()) { | ||||
$conduit_only = true; | $form_field = true; | ||||
} else { | } else { | ||||
$conduit_only = false; | $form_field = false; | ||||
} | } | ||||
$bulk_label = $this->getBulkEditLabel(); | $bulk_label = $this->getBulkEditLabel(); | ||||
return $this->newEditField() | return $this->newEditField() | ||||
->setKey($this->getFieldKey()) | ->setKey($this->getFieldKey()) | ||||
->setEditTypeKey($this->getModernFieldKey()) | ->setEditTypeKey($this->getModernFieldKey()) | ||||
->setLabel($this->getFieldName()) | ->setLabel($this->getFieldName()) | ||||
->setBulkEditLabel($bulk_label) | ->setBulkEditLabel($bulk_label) | ||||
->setDescription($this->getFieldDescription()) | ->setDescription($this->getFieldDescription()) | ||||
->setTransactionType($this->getApplicationTransactionType()) | ->setTransactionType($this->getApplicationTransactionType()) | ||||
->setIsConduitOnly($conduit_only) | ->setIsFormField($form_field) | ||||
->setValue($this->getNewValueForApplicationTransactions()); | ->setValue($this->getNewValueForApplicationTransactions()); | ||||
} | } | ||||
protected function getBulkEditLabel() { | protected function getBulkEditLabel() { | ||||
if ($this->proxy) { | if ($this->proxy) { | ||||
return $this->proxy->getBulkEditLabel(); | return $this->proxy->getBulkEditLabel(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 454 Lines • Show Last 20 Lines |