protected function ImportEntity::setGidStatus in Content Synchronizer 8
Same name and namespace in other branches
- 8.2 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::setGidStatus()
- 3.x src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::setGidStatus()
Set the status of the entity.
Parameters
string $gid: The gid.
string $status: The status.
2 calls to ImportEntity::setGidStatus()
- ImportEntity::tagHasImported in src/
Entity/ ImportEntity.php - Tag the entity has imported.
- ImportEntity::tagHasImporting in src/
Entity/ ImportEntity.php - Tag the entity has importing.
File
- src/
Entity/ ImportEntity.php, line 437
Class
- ImportEntity
- Defines the Import entity.
Namespace
Drupal\content_synchronizer\EntityCode
protected function setGidStatus($gid, $status) {
// Write json file for next call.
$entityTypeId = $this->globalReferenceManager
->getEntityTypeFromGid($gid);
$allData = $this
->getDataFromEntityTypeFile($entityTypeId);
$this->entityTypeData[$entityTypeId][$gid][self::ENTITY_FIELD_IMPORTING_STATUS] = $allData[$gid][self::ENTITY_FIELD_IMPORTING_STATUS] = $status;
$this
->writeJson($allData, $this
->getArchiveFilesPath() . '/' . $entityTypeId . ExportEntityWriter::TYPE_EXTENSION);
}