You are here

public function SalesforceMappingCommands::purgeAll in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php \Drupal\salesforce_mapping\Commands\SalesforceMappingCommands::purgeAll()
  2. 5.0.x modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php \Drupal\salesforce_mapping\Commands\SalesforceMappingCommands::purgeAll()

Clean up Mapped Objects table.

Clean by deleting any records which reference missing Mappings, Entities, or Salesforce records.

@command salesforce_mapping:purge-all @aliases sfpall,sf-purge-all

Parameters

string $name: Id of the salesforce mapping whose mapped objects should be purged.

File

modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php, line 371

Class

SalesforceMappingCommands
A Drush commandfile.

Namespace

Drupal\salesforce_mapping\Commands

Code

public function purgeAll($name) {
  $this
    ->purgeDrupal($name);
  $this
    ->purgeSalesforce($name);
  $this
    ->purgeMapping($name);
}