You are here

public function SalesforceMappingCommands::purgeAll in Salesforce Suite 5.0.x

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

Throws

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

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

Class

SalesforceMappingCommands
A Drush commandfile.

Namespace

Drupal\salesforce_mapping\Commands

Code

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