public function SalesforceMapping::getFieldMappings in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::getFieldMappings()
- 5.0.x modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::getFieldMappings()
Get all the mapped field plugins for this mapping.
Return value
\Drupal\salesforce_mapping\SalesforceMappingFieldPluginInterface[] The fields.
Overrides SalesforceMappingInterface::getFieldMappings
4 calls to SalesforceMapping::getFieldMappings()
- SalesforceMapping::calculateDependencies in modules/
salesforce_mapping/ src/ Entity/ SalesforceMapping.php - Calculates dependencies and stores them in the dependency property.
- SalesforceMapping::getKeyValue in modules/
salesforce_mapping/ src/ Entity/ SalesforceMapping.php - Given a Drupal entity, get the value to be upserted.
- SalesforceMapping::getPullFields in modules/
salesforce_mapping/ src/ Entity/ SalesforceMapping.php - Get all the field plugins which are configured to pull from Salesforce.
- SalesforceMapping::removePluginDependencies in modules/
salesforce_mapping/ src/ Entity/ SalesforceMapping.php - Delegate dependency removal events to field mappings plugins.
File
- modules/
salesforce_mapping/ src/ Entity/ SalesforceMapping.php, line 477
Class
- SalesforceMapping
- Defines a Salesforce Mapping configuration entity class.
Namespace
Drupal\salesforce_mapping\EntityCode
public function getFieldMappings() {
// @TODO #fieldMappingField
$fields = [];
foreach ($this->field_mappings as $i => $field) {
$fields[$i] = $this
->fieldManager()
->createInstance($field['drupal_field_type'], $field + [
'mapping' => $this,
]);
}
return $fields;
}