public function EntityReferenceRevisionItemNormalizer::normalize in Tome 8
Overrides EntityReferenceItemNormalizer::normalize
File
- modules/
tome_sync/ src/ Normalizer/ EntityReferenceRevisionItemNormalizer.php, line 37
Class
- EntityReferenceRevisionItemNormalizer
- Normalizer for entity reference revision fields.
Namespace
Drupal\tome_sync\NormalizerCode
public function normalize($field_item, $format = NULL, array $context = []) {
$values = parent::normalize($field_item, $format, $context);
if (isset($values['target_revision_id'])) {
unset($values['target_revision_id']);
}
return $values;
}