function drush_content_sync_force_entity_deletion in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x modules/cms_content_sync_developer/cms_content_sync_developer.drush.inc \drush_content_sync_force_entity_deletion()
- 2.0.x modules/cms_content_sync_developer/cms_content_sync_developer.drush.inc \drush_content_sync_force_entity_deletion()
Force the deletion of entities and skip the syndication.
Parameters
$entity_type:
File
- modules/
cms_content_sync_developer/ cms_content_sync_developer.drush.inc, line 52 - Contains Drush commands for Content Sync.
Code
function drush_content_sync_force_entity_deletion($entity_type) {
$options['entity_uuid'] = drush_get_option('entity_uuid', NULL);
$options['bundle'] = drush_get_option('bundle', NULL);
Drupal::service('cms_content_sync_developer.cli')
->force_entity_deletion(new Drush8Io(), $entity_type . $options);
}