private function Exporter::addExportedEntity in Default Content Deploy 8
Add array with entity info for export.
Parameters
$exported_entity: Entity info.
Return value
$this
3 calls to Exporter::addExportedEntity()
- Exporter::prepareToExport in src/Exporter.php 
- Prepare content to export.
- Exporter::prepareToExportAllContent in src/Exporter.php 
- Prepare all content on the site to export.
- Exporter::prepareToExportWithReference in src/Exporter.php 
- Prepare content with reference to export.
File
- src/Exporter.php, line 434 
Class
- Exporter
- A service for handling export of default content.
Namespace
Drupal\default_content_deployCode
private function addExportedEntity($exported_entity) {
  if (is_string($exported_entity)) {
    $entity = $this->serializer
      ->decode($exported_entity, 'hal_json');
    $uuid = $entity['uuid'][0]['value'];
    $entity_with_uuid[$uuid] = $exported_entity;
    $exported_entity_array[$this->entityTypeId][$uuid] = $exported_entity;
  }
  else {
    $exported_entity_array = $exported_entity;
  }
  $this->exportedEntities = array_replace_recursive($this->exportedEntities, $exported_entity_array);
  return $this;
}