public function RestResponseDescribe::getFieldOptions in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 src/Rest/RestResponseDescribe.php \Drupal\salesforce\Rest\RestResponseDescribe::getFieldOptions()
- 5.0.x src/Rest/RestResponseDescribe.php \Drupal\salesforce\Rest\RestResponseDescribe::getFieldOptions()
Return a one-dimensional array of field names => field labels.
Return value
array The field options.
File
- src/
Rest/ RestResponseDescribe.php, line 159
Class
- RestResponseDescribe
- Class RestResponseDescribe.
Namespace
Drupal\salesforce\RestCode
public function getFieldOptions() {
if (!isset($this->fieldOptions)) {
$this->fieldOptions = array_column($this->fields, 'label', 'name');
asort($this->fieldOptions);
}
return $this->fieldOptions;
}