You are here

public function DefaultContentManagerInterface::exportContentWithReferences in Default Content 8

Exports a single entity and all its referenced entity.

Parameters

EntityInterface $entity: The entity type ID.

Return value

string[][] The serialized entities keyed by entity type and UUID.

1 method overrides DefaultContentManagerInterface::exportContentWithReferences()
DefaultContentManager::exportContentWithReferences in src/DefaultContentManager.php
Exports a single entity and all its referenced entity.

File

src/DefaultContentManagerInterface.php, line 54
Contains \Drupal\defaultcontent\DefaultContentManager.

Class

DefaultContentManagerInterface
An interface defining a default content importer.

Namespace

Drupal\defaultcontent

Code

public function exportContentWithReferences($entity_type_id, $entity_id);