You are here

public function AcquiaContentHubEntityCommands::contenthubRemote in Acquia Content Hub 8.2

Prints the CDF from a remote source (Content Hub)

@option decode Decodes the metadata 'data' element to make it easier to understand the content of each CDF entity stored in Content Hub.

@command acquia:contenthub-remote @aliases ach-re,acquia-contenthub-remote

Parameters

string $uuid: The entity's UUID.

array $options: An associative array of options whose values come from cli, aliases, config, etc.

Throws

\Exception

File

src/Commands/AcquiaContentHubEntityCommands.php, line 192

Class

AcquiaContentHubEntityCommands
Drush commands for interacting with Acquia Content Hub entities.

Namespace

Drupal\acquia_contenthub\Commands

Code

public function contenthubRemote($uuid, array $options = [
  'decode' => NULL,
]) {
  if (FALSE === Uuid::isValid($uuid)) {
    throw new \Exception(dt("Argument provided is not a UUID."));
  }
  $this
    ->contenthubEntity('remote', $uuid, NULL, $options);
}