protected function SettingsForm::getVersionOptions in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 src/Form/SettingsForm.php \Drupal\salesforce\Form\SettingsForm::getVersionOptions()
- 8.3 src/Form/SettingsForm.php \Drupal\salesforce\Form\SettingsForm::getVersionOptions()
Helper method to generate Salesforce option list for select element.
Return value
array The version options.
1 call to SettingsForm::getVersionOptions()
- SettingsForm::buildForm in src/
Form/ SettingsForm.php - Form constructor.
File
- src/
Form/ SettingsForm.php, line 244
Class
- SettingsForm
- Creates authorization form for Salesforce.
Namespace
Drupal\salesforce\FormCode
protected function getVersionOptions() {
$versions = $this->client
->getVersions();
array_walk($versions, function (&$item, $key) {
$item = $item['label'];
});
return $versions;
}