Differential D17004 Diff 41390 src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | abstract class PhabricatorStandardCustomFieldPHIDs | ||||
| public function getRequiredHandlePHIDsForPropertyView() { | public function getRequiredHandlePHIDsForPropertyView() { | ||||
| $value = $this->getFieldValue(); | $value = $this->getFieldValue(); | ||||
| if ($value) { | if ($value) { | ||||
| return $value; | return $value; | ||||
| } | } | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| public function renderPropertyViewValue(array $handles) { | protected function renderValue() { | ||||
| $value = $this->getFieldValue(); | $value = $this->getFieldValue(); | ||||
| if (!$value) { | if (!$value) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| $handles = mpull($handles, 'renderHovercardLink'); | return $this->getViewer()->renderHandleList($value) | ||||
| $handles = phutil_implode_html(', ', $handles); | ->setAsInline(true); | ||||
| return $handles; | |||||
| } | } | ||||
| public function getRequiredHandlePHIDsForEdit() { | public function getRequiredHandlePHIDsForEdit() { | ||||
| $value = $this->getFieldValue(); | $value = $this->getFieldValue(); | ||||
| if ($value) { | if ($value) { | ||||
| return $value; | return $value; | ||||
| } else { | } else { | ||||
| return array(); | return array(); | ||||
| ▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines | |||||