public function SalesforceMapping::hasKey in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::hasKey()
- 5.0.x modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::hasKey()
Return TRUE if an upsert key is set for this mapping.
Return value
bool Return TRUE if an upsert key is set for this mapping.
Overrides SalesforceMappingInterface::hasKey
2 calls to SalesforceMapping::hasKey()
- SalesforceMapping::alwaysUpsert in modules/
salesforce_mapping/ src/ Entity/ SalesforceMapping.php - Return TRUE if this mapping should always use upsert over create or update.
- SalesforceMapping::getKeyValue in modules/
salesforce_mapping/ src/ Entity/ SalesforceMapping.php - Given a Drupal entity, get the value to be upserted.
File
- modules/
salesforce_mapping/ src/ Entity/ SalesforceMapping.php, line 370
Class
- SalesforceMapping
- Defines a Salesforce Mapping configuration entity class.
Namespace
Drupal\salesforce_mapping\EntityCode
public function hasKey() {
return $this->key ? TRUE : FALSE;
}