Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/custom/PhabricatorConfigOptionType.php
| Show All 18 Lines | abstract class PhabricatorConfigOptionType extends Phobject { | ||||
| } | } | ||||
| public function getDisplayValue( | public function getDisplayValue( | ||||
| PhabricatorConfigOption $option, | PhabricatorConfigOption $option, | ||||
| PhabricatorConfigEntry $entry, | PhabricatorConfigEntry $entry, | ||||
| $value) { | $value) { | ||||
| if (is_array($value)) { | if (is_array($value)) { | ||||
| $json = new PhutilJSON(); | return PhabricatorConfigJSON::prettyPrintJSON($value); | ||||
| return $json->encodeFormatted($value); | |||||
| } else { | } else { | ||||
| return $value; | return $value; | ||||
| } | } | ||||
| } | } | ||||
| public function renderControl( | public function renderControl( | ||||
| PhabricatorConfigOption $option, | PhabricatorConfigOption $option, | ||||
| Show All 11 Lines | |||||