Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/editor/AlmanacInterfaceEditEngine.php
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | $networks = id(new AlmanacNetworkQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->execute(); | ->execute(); | ||||
$network_map = mpull($networks, 'getName', 'getPHID'); | $network_map = mpull($networks, 'getName', 'getPHID'); | ||||
return array( | return array( | ||||
id(new PhabricatorTextEditField()) | id(new PhabricatorTextEditField()) | ||||
->setKey('device') | ->setKey('device') | ||||
->setLabel(pht('Device')) | ->setLabel(pht('Device')) | ||||
->setIsConduitOnly(true) | ->setIsFormField(false) | ||||
->setTransactionType( | ->setTransactionType( | ||||
AlmanacInterfaceDeviceTransaction::TRANSACTIONTYPE) | AlmanacInterfaceDeviceTransaction::TRANSACTIONTYPE) | ||||
->setDescription(pht('When creating an interface, set the device.')) | ->setDescription(pht('When creating an interface, set the device.')) | ||||
->setConduitDescription(pht('Set the device.')) | ->setConduitDescription(pht('Set the device.')) | ||||
->setConduitTypeDescription(pht('Device PHID.')) | ->setConduitTypeDescription(pht('Device PHID.')) | ||||
->setValue($object->getDevicePHID()), | ->setValue($object->getDevicePHID()), | ||||
id(new PhabricatorSelectEditField()) | id(new PhabricatorSelectEditField()) | ||||
->setKey('network') | ->setKey('network') | ||||
Show All 25 Lines |