You are here

public function DefaultContentDeployCommands::entityUuidInfo in Default Content Deploy 8

Get UUID of entity.

@command default-content-deploy:uuid-info @usage drush dcd-uuid-info node 1 Displays the current UUID value of this entity. @aliases dcd-uuid-info,default-content-deploy-uuid-info,dcd-uuid

Parameters

$entity_type: Entity type ID.

$id: ID of entity.

Return value

string UUID value.

Throws

\Exception

File

src/Commands/DefaultContentDeployCommands.php, line 312

Class

DefaultContentDeployCommands
Class DefaultContentDeployCommands.

Namespace

Drupal\default_content_deploy\Commands

Code

public function entityUuidInfo($entity_type, $id) {
  return $this->deployManager
    ->getEntityUuidById($entity_type, $id);
}