public function PushParams::getParam in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/PushParams.php \Drupal\salesforce_mapping\PushParams::getParam()
- 5.0.x modules/salesforce_mapping/src/PushParams.php \Drupal\salesforce_mapping\PushParams::getParam()
Get a param value for a given key.
Parameters
string $key: A param key.
Return value
mixed The given param value for $key
Throws
\Exception If the key doesn't exist.
File
- modules/
salesforce_mapping/ src/ PushParams.php, line 84
Class
- PushParams
- Wrapper for the array of values which will be pushed to Salesforce.
Namespace
Drupal\salesforce_mappingCode
public function getParam($key) {
if (!array_key_exists($key, $this->params)) {
throw new \Exception("Param key {$key} does not exist");
}
return $this->params[$key];
}