public function SObject::field in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 src/SObject.php \Drupal\salesforce\SObject::field()
- 8.3 src/SObject.php \Drupal\salesforce\SObject::field()
Given $key, return corresponding field value.
Return value
mixed|null The value, or NULL if given $key is not set.
See also
hasField()
File
- src/
SObject.php, line 137
Class
- SObject
- Class SObject.
Namespace
Drupal\salesforceCode
public function field($key) {
if (!array_key_exists($key, $this->fields)) {
return NULL;
}
return $this->fields[$key];
}