public function SalesforceMapping::getPullFields 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::getPullFields()
- 5.0.x modules/salesforce_mapping/src/Entity/SalesforceMapping.php \Drupal\salesforce_mapping\Entity\SalesforceMapping::getPullFields()
Get all the field plugins which are configured to pull from Salesforce.
Return value
\Drupal\salesforce_mapping\SalesforceMappingFieldPluginInterface[] Array of objects.
Overrides SalesforceMappingInterface::getPullFields
File
- modules/
salesforce_mapping/ src/ Entity/ SalesforceMapping.php, line 340
Class
- SalesforceMapping
- Defines a Salesforce Mapping configuration entity class.
Namespace
Drupal\salesforce_mapping\EntityCode
public function getPullFields() {
// @TODO This should probably be delegated to a field plugin bag?
$fields = [];
foreach ($this
->getFieldMappings() as $field_plugin) {
// Skip fields that aren't being pulled from Salesforce.
if (!$field_plugin
->pull()) {
continue;
}
$fields[] = $field_plugin;
}
return $fields;
}