public function ImportEntity::getDataFromEntityTypeFile in Content Synchronizer 3.x
Same name and namespace in other branches
- 8.2 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::getDataFromEntityTypeFile()
- 8 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::getDataFromEntityTypeFile()
Return the data from the entity type data file.
Parameters
string $entityType: THe entity type id.
Return value
array The list of import data for this entity type.
1 call to ImportEntity::getDataFromEntityTypeFile()
- ImportEntity::setGidStatus in src/
Entity/ ImportEntity.php - Set the status of the entity.
File
- src/
Entity/ ImportEntity.php, line 395
Class
- ImportEntity
- Defines the Import entity.
Namespace
Drupal\content_synchronizer\EntityCode
public function getDataFromEntityTypeFile($entityType) {
// Unzip.
if (!file_exists($this
->getArchiveFilesPath())) {
$this
->unzipArchive();
}
if (!array_key_exists($entityType, $this->entityTypeData)) {
$this->entityTypeData[$entityType] = $this
->getDataFromFile($this
->getArchiveFilesPath() . '/' . $entityType . ExportEntityWriter::TYPE_EXTENSION);
}
return $this->entityTypeData[$entityType];
}