You are here

public function CMSContentSyncCommands::pull_entities in CMS Content Sync 2.1.x

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

Kindly ask the Sync Core to pull all entities for a specific flow.

@command cms_content_sync:pull-entities

@aliases cspe

@options force Also update entities which have already been pulled.

@usage cms_content_sync:pull-entities example_flow Pulls all entities from the example flow. @usage cms_content_sync:pull-entities example_flow --force Pull all entities from the "example_flow" and force entities which already have been pulled to be updated as well.

Parameters

string $flow_id: The flow the entities should be pulled from

array $options:

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

\EdgeBox\SyncCore\Exception\SyncCoreException

Deprecated

Function is deprecated and is going to be removed in 2.0, use pull() instead.

File

src/Commands/CMSContentSyncCommands.php, line 156

Class

CMSContentSyncCommands
Content Sync Drush Commands.

Namespace

Drupal\cms_content_sync\Commands

Code

public function pull_entities($flow_id, $options = [
  'force' => false,
]) {
  $this->cliService
    ->pull_entities($this
    ->io(), $flow_id, $options);
}