public function GlobalReferenceManager::getEntityTypeFromGid in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/Service/GlobalReferenceManager.php \Drupal\content_synchronizer\Service\GlobalReferenceManager::getEntityTypeFromGid()
- 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\ServiceCode
public function getEntityTypeFromGid($gid) {
list($time, $entityTypeId, $entityLocalId) = explode('.', $gid);
return $entityTypeId;
}