You are here

protected function SalesforceMappingCommands::objectTypesByPrefix in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php \Drupal\salesforce_mapping\Commands\SalesforceMappingCommands::objectTypesByPrefix()
  2. 5.0.x 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\Commands

Code

protected function objectTypesByPrefix() {
  $ret = [];
  $describe = $this->client
    ->objects();
  foreach ($describe as $object) {
    $ret[$object['keyPrefix']] = $object;
  }
  return $ret;
}