Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UUID instead of NID #24

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/DefaultContentManager.php
Expand Up @@ -115,7 +115,7 @@ public function importContent($module) {
// Decode the file contents.
$decoded = $this->serializer->decode($contents, 'hal_json');
// Get the link to this entity.
$self = $decoded['_links']['self']['href'];
$self = $decoded['uuid'][0]['value'];
// Store the entity type with the file.
$file->entity_type_id = $entity_type_id;
// Store the file in the file map.
Expand All @@ -130,7 +130,7 @@ public function importContent($module) {
// Here we need to resolve our dependencies;
foreach ($decoded['_embedded'] as $embedded) {
foreach ($embedded as $item) {
$this->tree()->addDirectedEdge($vertex, $this->getVertex($item['_links']['self']['href']));
$this->tree()->addDirectedEdge($vertex, $this->getVertex($item['uuid'][0]['value']));
}
}
}
Expand Down