Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/editor/AlmanacBindingEditEngine.php
| Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | return array( | ||||
| ->setLabel(pht('Interface')) | ->setLabel(pht('Interface')) | ||||
| ->setIsConduitOnly(true) | ->setIsConduitOnly(true) | ||||
| ->setTransactionType( | ->setTransactionType( | ||||
| AlmanacBindingInterfaceTransaction::TRANSACTIONTYPE) | AlmanacBindingInterfaceTransaction::TRANSACTIONTYPE) | ||||
| ->setDescription(pht('Interface to bind the service to.')) | ->setDescription(pht('Interface to bind the service to.')) | ||||
| ->setConduitDescription(pht('Set the interface to bind.')) | ->setConduitDescription(pht('Set the interface to bind.')) | ||||
| ->setConduitTypeDescription(pht('Interface PHID.')) | ->setConduitTypeDescription(pht('Interface PHID.')) | ||||
| ->setValue($object->getInterfacePHID()), | ->setValue($object->getInterfacePHID()), | ||||
| id(new PhabricatorBoolEditField()) | |||||
| ->setKey('disabled') | |||||
| ->setLabel(pht('Disabled')) | |||||
| ->setIsConduitOnly(true) | |||||
| ->setTransactionType( | |||||
| AlmanacBindingDisableTransaction::TRANSACTIONTYPE) | |||||
| ->setDescription(pht('Disable or enable the binding.')) | |||||
| ->setConduitDescription(pht('Disable or enable the binding.')) | |||||
| ->setConduitTypeDescription(pht('True to disable the binding.')) | |||||
| ->setValue($object->getIsDisabled()) | |||||
| ->setOptions( | |||||
| pht('Enable Binding'), | |||||
| pht('Disable Binding')), | |||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||