Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorSendGridConfigOptions.php
<?php | <?php | ||||
final class PhabricatorSendGridConfigOptions | final class PhabricatorSendGridConfigOptions | ||||
extends PhabricatorApplicationConfigOptions { | extends PhabricatorApplicationConfigOptions { | ||||
public function getName() { | public function getName() { | ||||
return pht("Integration with SendGrid"); | return pht('Integration with SendGrid'); | ||||
} | } | ||||
public function getDescription() { | public function getDescription() { | ||||
return pht("Configure SendGrid integration."); | return pht('Configure SendGrid integration.'); | ||||
} | } | ||||
public function getOptions() { | public function getOptions() { | ||||
return array( | return array( | ||||
$this->newOption('sendgrid.api-user', 'string', null) | $this->newOption('sendgrid.api-user', 'string', null) | ||||
->setLocked(true) | ->setLocked(true) | ||||
->setDescription(pht('SendGrid API username.')), | ->setDescription(pht('SendGrid API username.')), | ||||
$this->newOption('sendgrid.api-key', 'string', null) | $this->newOption('sendgrid.api-key', 'string', null) | ||||
->setMasked(true) | ->setMasked(true) | ||||
->setDescription(pht('SendGrid API key.')), | ->setDescription(pht('SendGrid API key.')), | ||||
); | ); | ||||
} | } | ||||
} | } |