public function SalesforceMappingCommands::purgeAll in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/src/Commands/SalesforceMappingCommands.php \Drupal\salesforce_mapping\Commands\SalesforceMappingCommands::purgeAll()
- 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.
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\CommandsCode
public function purgeAll($name) {
$this
->purgeDrupal($name);
$this
->purgeSalesforce($name);
$this
->purgeMapping($name);
}