You are here

public function CMSContentSyncCommands::reset_status_entities in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 8 src/Commands/CMSContentSyncCommands.php \Drupal\cms_content_sync\Commands\CMSContentSyncCommands::reset_status_entities()
  2. 2.1.x src/Commands/CMSContentSyncCommands.php \Drupal\cms_content_sync\Commands\CMSContentSyncCommands::reset_status_entities()

Reset the status entities for a specific or all pool/s.

@command cms_content_sync:reset-status-entities

@aliases csrse

@options pool_id The machine name of the pool the status entities should be reset for.

@usage cms_content_sync:reset-status-entities Reset all status entities for all pools. @usage cms_content_sync:reset-status-entities --pool_id='example_pool' Reset all status entities for the "example_pool".

Parameters

array $options:

Throws

\Drush\Exceptions\UserAbortException

File

src/Commands/CMSContentSyncCommands.php, line 205

Class

CMSContentSyncCommands
Content Sync Drush Commands.

Namespace

Drupal\cms_content_sync\Commands

Code

public function reset_status_entities($options = [
  'pool_id' => InputOption::VALUE_OPTIONAL,
]) {
  $this->cliService
    ->reset_status_entities($this
    ->io(), $options);
}