Skip to content

Commit

Permalink
Fully normalize ElifeAssessment articleSection
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcmoulton committed Jan 10, 2025
1 parent 6394c32 commit 74570c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Serializer/ElifeAssessmentNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ public function normalize($object, $format = null, array $context = []) : array
return $this->normalizer->normalize($block, $format, $context);
})
->toArray();
if ($articleSection->getDoi() !== null) {
$data['doi'] = $articleSection->getDoi();
}
if ($articleSection->getId() !== null) {
$data['id'] = $articleSection->getId();
}
}
if ($object->getSignificance() !== null) {
$data['significance'] = $object->getSignificance();
Expand Down

0 comments on commit 74570c4

Please sign in to comment.