You are here

public function CliService::force_pull_entity in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 src/Cli/CliService.php \Drupal\cms_content_sync\Cli\CliService::force_pull_entity()
  2. 2.0.x src/Cli/CliService.php \Drupal\cms_content_sync\Cli\CliService::force_pull_entity()

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

Parameters

ICLIIO $io: The CLI service which allows interoperability

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/Cli/CliService.php, line 291

Class

CliService

Namespace

Drupal\cms_content_sync\Cli

Code

public function force_pull_entity($io, $flow_id, $entity_type, $entity_uuid) {
  $io
    ->warning('Function is deprecated and is going to be removed in 2.0, use "cs-pull" instead.');
  FlowPull::force_pull_entity($flow_id, $entity_type, $entity_uuid);
}