Differential D15829 Diff 38138 src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldCredential.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldCredential.php
Show All 28 Lines | public function renderEditControl(array $handles) { | ||||
$credentials = id(new PassphraseCredentialQuery()) | $credentials = id(new PassphraseCredentialQuery()) | ||||
->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
->withIsDestroyed(false) | ->withIsDestroyed(false) | ||||
->withProvidesTypes(array($provides_type)) | ->withProvidesTypes(array($provides_type)) | ||||
->execute(); | ->execute(); | ||||
return id(new PassphraseCredentialControl()) | return id(new PassphraseCredentialControl()) | ||||
->setViewer($this->getViewer()) | |||||
->setLabel($this->getFieldName()) | ->setLabel($this->getFieldName()) | ||||
->setName($this->getFieldKey()) | ->setName($this->getFieldKey()) | ||||
->setCaption($this->getCaption()) | ->setCaption($this->getCaption()) | ||||
->setAllowNull(!$this->getRequired()) | ->setAllowNull(!$this->getRequired()) | ||||
->setCredentialType($credential_type) | ->setCredentialType($credential_type) | ||||
->setValue($this->getFieldValue()) | ->setValue($this->getFieldValue()) | ||||
->setError($this->getFieldError()) | ->setError($this->getFieldError()) | ||||
->setOptions($credentials); | ->setOptions($credentials); | ||||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |