You are here

public function SelectQueryResult::record in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 src/SelectQueryResult.php \Drupal\salesforce\SelectQueryResult::record()
  2. 5.0.x 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\salesforce

Code

public function record(SFID $id) {
  return isset($this->records[(string) $id]) ? $this->records[(string) $id] : FALSE;
}