public function EntityReferenceRevisionsCommands::purge in Entity Reference Revisions 8
Orphan composite revision deletion.
@usage drush err:purge paragraph Purge orphaned paragraphs.
@command err:purge @aliases errp
Parameters
$types: A comma delimited list of entity types to check for orphans. Omit to choose from a list.
File
- src/
Commands/ EntityReferenceRevisionsCommands.php, line 43
Class
- EntityReferenceRevisionsCommands
- A Drush commandfile.
Namespace
Drupal\entity_reference_revisions\CommandsCode
public function purge($types) {
$this->purger
->setBatch(StringUtils::csvToArray($types));
drush_backend_batch_process();
}