You are here

public function ImportEntity::getEntityDataFromGid in Content Synchronizer 8.2

Same name and namespace in other branches
  1. 8 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::getEntityDataFromGid()
  2. 3.x src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::getEntityDataFromGid()

Return the data form the gid.

Parameters

string $gid: The gid.

Return value

array The entity data.

File

src/Entity/ImportEntity.php, line 389

Class

ImportEntity
Defines the Import entity.

Namespace

Drupal\content_synchronizer\Entity

Code

public function getEntityDataFromGid($gid) {
  $entityTypeId = $this->globalReferenceManager
    ->getEntityTypeFromGid($gid);
  return $this
    ->getDataFromEntityTypeFile($entityTypeId)[$gid];
}