function entity_share_client_drush_command in Entity Share 8
Same name and namespace in other branches
- 8.2 modules/entity_share_client/entity_share_client.drush.inc \entity_share_client_drush_command()
Implements hook_drush_command().
File
- modules/
entity_share_client/ entity_share_client.drush.inc, line 13 - Drush (< 9) integration for the entity_share_client module.
Code
function entity_share_client_drush_command() {
$items['entity-share-client-pull'] = [
'description' => 'Pull the content of a channel of a remote website.',
'core' => [
'8+',
],
'aliases' => [],
'arguments' => [
'remote_id' => 'The remote website id to import from.',
'channel_id' => 'The remote channel id to import.',
],
'options' => [
'update' => 'Use this option to fetch only new and updated entities.',
],
'examples' => [
'drush entity-share-client-pull content_hub articles_fr' => 'Import the channel articles_fr from the content_hub website',
'drush entity-share-client-pull content_hub articles_fr --update' => 'Pull only new and changed entities from articles_fr channel.',
],
];
return $items;
}