public function EntityShareClientCommands::pullChannel in Entity Share 8
Same name and namespace in other branches
- 8.3 modules/entity_share_client/src/Commands/EntityShareClientCommands.php \Drupal\entity_share_client\Commands\EntityShareClientCommands::pullChannel()
- 8.2 modules/entity_share_client/src/Commands/EntityShareClientCommands.php \Drupal\entity_share_client\Commands\EntityShareClientCommands::pullChannel()
Pull a channel from a remote website.
@command entity-share-client:pull @options update Optional --update argument which denotes script to fetch only new and updated entities. @usage drush entity-share-client:pull remote_id channel_id --update Pull a channel from a remote website. Add --update option to fetch only new and updated entities.
Parameters
string $remote_id: The remote website id to import from.
string $channel_id: The remote channel id to import.
array $options: Additional Drush 9 command options.
File
- modules/
entity_share_client/ src/ Commands/ EntityShareClientCommands.php, line 49
Class
- EntityShareClientCommands
- Class EntityShareClientCommands.
Namespace
Drupal\entity_share_client\CommandsCode
public function pullChannel($remote_id = '', $channel_id = '', $options = [
'update' => FALSE,
]) {
if ($options['update']) {
$this->cliService
->ioPullUpdates($remote_id, $channel_id, $this
->io(), 'dt');
}
else {
$this->cliService
->ioPull($remote_id, $channel_id, $this
->io(), 'dt');
}
}