You are here

public function SalesforceMapping::getKeyField in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::getKeyField()
  2. 5.0.x modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::getKeyField()

Return name of the Salesforce field which is the upsert key.

Return value

string The upsert key Salesforce field name.

Overrides SalesforceMappingInterface::getKeyField

1 call to SalesforceMapping::getKeyField()
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 425

Class

SalesforceMapping
Defines a Salesforce Mapping configuration entity class.

Namespace

Drupal\salesforce_mapping\Entity

Code

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