Differential D17004 Diff 41390 src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldCredential.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldCredential.php
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | final class PhabricatorStandardCustomFieldCredential | ||||
| public function getRequiredHandlePHIDsForPropertyView() { | public function getRequiredHandlePHIDsForPropertyView() { | ||||
| $value = $this->getFieldValue(); | $value = $this->getFieldValue(); | ||||
| if ($value) { | if ($value) { | ||||
| return array($value); | return array($value); | ||||
| } | } | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| public function renderPropertyViewValue(array $handles) { | protected function renderValue() { | ||||
| $value = $this->getFieldValue(); | $value = $this->getFieldValue(); | ||||
| if ($value) { | if ($value) { | ||||
| return $handles[$value]->renderLink(); | return $this->getViewer()->renderHandle($value); | ||||
| } | } | ||||
| return null; | return null; | ||||
| } | } | ||||
| public function validateApplicationTransactions( | public function validateApplicationTransactions( | ||||
| PhabricatorApplicationTransactionEditor $editor, | PhabricatorApplicationTransactionEditor $editor, | ||||
| $type, | $type, | ||||
| array $xactions) { | array $xactions) { | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||