You are here

public function GlobalReferenceManager::getEntityTypeFromGid in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Service/GlobalReferenceManager.php \Drupal\content_synchronizer\Service\GlobalReferenceManager::getEntityTypeFromGid()
  2. 3.x src/Service/GlobalReferenceManager.php \Drupal\content_synchronizer\Service\GlobalReferenceManager::getEntityTypeFromGid()

Return the entity type from the gid.

Parameters

string $gid: THe gid.

Return value

string The entity type id.

1 call to GlobalReferenceManager::getEntityTypeFromGid()
GlobalReferenceManager::getExistingEntityByGidAndUuid in src/Service/GlobalReferenceManager.php
Return the entity by gid and uuid.

File

src/Service/GlobalReferenceManager.php, line 110

Class

GlobalReferenceManager
The global reference manager.

Namespace

Drupal\content_synchronizer\Service

Code

public function getEntityTypeFromGid($gid) {
  list($time, $entityTypeId, $entityLocalId) = explode('.', $gid);
  return $entityTypeId;
}