public function ContentHubCommonActions::importEntityCdfDocument in Acquia Content Hub 8.2
Imports a list of entities from a CDFDocument object.
Parameters
\Acquia\ContentHubClient\CDFDocument $document: The CDF document representing the entities to import.
Return value
\Drupal\depcalc\DependencyStack The DependencyStack object.
Throws
\Drupal\Core\Entity\EntityStorageException
1 call to ContentHubCommonActions::importEntityCdfDocument()
- ContentHubCommonActions::importEntities in src/
ContentHubCommonActions.php - Import a group of entities by their uuids from the ContentHub Service.
File
- src/
ContentHubCommonActions.php, line 193
Class
- ContentHubCommonActions
- Common actions across the entirety of Content Hub.
Namespace
Drupal\acquia_contenthubCode
public function importEntityCdfDocument(CDFDocument $document) {
$stack = new DependencyStack();
$this->serializer
->unserializeEntities($document, $stack);
return $stack;
}