protected function SalesforceMappingCommands::objectTypesByPrefix in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php \Drupal\salesforce_mapping\Commands\SalesforceMappingCommands::objectTypesByPrefix()
- 8.3 modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php \Drupal\salesforce_mapping\Commands\SalesforceMappingCommands::objectTypesByPrefix()
Helper to gather object types by prefix.
1 call to SalesforceMappingCommands::objectTypesByPrefix()
- SalesforceMappingCommands::purgeSalesforce in modules/
salesforce_mapping/ src/ Commands/ SalesforceMappingCommands.php - Clean up Mapped Objects by deleting records referencing missing records.
File
- modules/
salesforce_mapping/ src/ Commands/ SalesforceMappingCommands.php, line 253
Class
- SalesforceMappingCommands
- A Drush commandfile.
Namespace
Drupal\salesforce_mapping\CommandsCode
protected function objectTypesByPrefix() {
$ret = [];
$describe = $this->client
->objects();
foreach ($describe as $object) {
$ret[$object['keyPrefix']] = $object;
}
return $ret;
}