You are here

public function SalesforceMapping::hasKey in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::hasKey()
  2. 8.3 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 432

Class

SalesforceMapping
Defines a Salesforce Mapping configuration entity class.

Namespace

Drupal\salesforce_mapping\Entity

Code

public function hasKey() {
  return $this->key ? TRUE : FALSE;
}