You are here

public function CMSContentSyncCommands::force_pull_entity in CMS Content Sync 8

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

Kindly ask the Sync Core to force pull a specific entity.

@command cms_content_sync:force-pull-entity

@usage cms_content_sync:force-pull-entity example_flow node 3a150294-90eb-48c2-911d-672043a45683 Force pull the node having the uuid 3a150294-90eb-48c2-911d-672043a45683 which has been imported from the example flow.

Parameters

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

string $entity_type: The type of the entity that should be pulled

string $entity_uuid: The uuid of the entity that should be pulled

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Deprecated

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

File

src/Commands/CMSContentSyncCommands.php, line 181

Class

CMSContentSyncCommands
Content Sync Drush Commands.

Namespace

Drupal\cms_content_sync\Commands

Code

public function force_pull_entity($flow_id, $entity_type, $entity_uuid) {
  $this->cliService
    ->force_pull_entity($this
    ->io(), $flow_id, $entity_type, $entity_uuid);
}