public function GlobalReferenceManager::getEntityTypeFromGid in Content Synchronizer 3.x
Same name and namespace in other branches
- 8.2 src/Service/GlobalReferenceManager.php \Drupal\content_synchronizer\Service\GlobalReferenceManager::getEntityTypeFromGid()
- 8 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 109
Class
- GlobalReferenceManager
- The global reference manager.
Namespace
Drupal\content_synchronizer\ServiceCode
public function getEntityTypeFromGid($gid) {
$entityTypeId = explode('.', $gid)[1];
return $entityTypeId;
}