public function ExporterInterface::exportContentWithReferences in Default Content for D8 2.0.x
Same name and namespace in other branches
- 8 src/ExporterInterface.php \Drupal\default_content\ExporterInterface::exportContentWithReferences()
Exports a single entity and all its referenced entity.
Parameters
string $entity_type_id: The entity type ID.
mixed $entity_id: The entity ID to export.
string|null $folder: (optional) A folder to write the exported entities into, grouped by entity type. File entities also export their files into the same folder.
Return value
string[][] The serialized entities keyed by entity type and UUID.
1 method overrides ExporterInterface::exportContentWithReferences()
- Exporter::exportContentWithReferences in src/
Exporter.php - Exports a single entity and all its referenced entity.
File
- src/
ExporterInterface.php, line 40
Class
- ExporterInterface
- An interface defining a default content exporter.
Namespace
Drupal\default_contentCode
public function exportContentWithReferences($entity_type_id, $entity_id, $folder = NULL);