public function SelectQueryResult::record in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 src/SelectQueryResult.php \Drupal\salesforce\SelectQueryResult::record()
- 8.3 src/SelectQueryResult.php \Drupal\salesforce\SelectQueryResult::record()
Fetch a particular record given its SFID.
Parameters
\Drupal\salesforce\SFID $id: The SFID.
Return value
\Drupal\salesforce\SObject|false The record, or FALSE if no record exists for given id.
File
- src/
SelectQueryResult.php, line 129
Class
- SelectQueryResult
- Class SelectQueryResult.
Namespace
Drupal\salesforceCode
public function record(SFID $id) {
return isset($this->records[(string) $id]) ? $this->records[(string) $id] : FALSE;
}