Differential D19357 Diff 46307 src/applications/almanac/servicetype/AlmanacClusterRepositoryServiceType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/servicetype/AlmanacClusterRepositoryServiceType.php
| Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | if ($binding->hasInterface()) { | ||||
| $default_ports = ipull($protocols, 'value', 'port'); | $default_ports = ipull($protocols, 'value', 'port'); | ||||
| $default_value = idx($default_ports, $port, $default_value); | $default_value = idx($default_ports, $port, $default_value); | ||||
| } | } | ||||
| return array( | return array( | ||||
| 'protocol' => id(new PhabricatorSelectEditField()) | 'protocol' => id(new PhabricatorSelectEditField()) | ||||
| ->setOptions(ipull($protocols, 'value', 'value')) | ->setOptions(ipull($protocols, 'value', 'value')) | ||||
| ->setValue($default_value), | ->setValue($default_value), | ||||
| 'writable' => id(new PhabricatorBoolEditField()) | |||||
| ->setOptions( | |||||
| pht('Prevent Writes'), | |||||
| pht('Allow Writes')) | |||||
| ->setValue(true), | |||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||