You are here

public function RuntimeImportContext::isEntityTranslationImported in Entity Share 8.3

Check if an entity translation has been imported.

Parameters

string $langcode: The language code of the translation.

string $entity_uuid: The entity UUID.

Return value

bool TRUE if the translation had been imported. FALSE otherwise.

File

modules/entity_share_client/src/RuntimeImportContext.php, line 356

Class

RuntimeImportContext
Class RuntimeImportContext.

Namespace

Drupal\entity_share_client

Code

public function isEntityTranslationImported($langcode, $entity_uuid) {
  if (isset($this->importedEntities[$langcode][$entity_uuid])) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}