private function Importer::getReferences in Default Content Deploy 8
Get all reference by entity array content.
Parameters
array $content:
Return value
array
1 call to Importer::getReferences()
- Importer::decodeFile in src/
Importer.php - Prepare file to import.
File
- src/
Importer.php, line 524
Class
- Importer
- A service for handling import of default content.
Namespace
Drupal\default_content_deployCode
private function getReferences(array $content) {
$references = [];
if (isset($content['_embedded'])) {
foreach ($content['_embedded'] as $link) {
foreach ($link as $reference) {
if ($reference) {
$uuid = $reference['uuid'][0]['value'];
$path = $this
->getPathToFileByName($uuid);
if ($path) {
$references[$uuid] = $this->files[$path];
}
}
}
}
}
return $references;
}