Skip to content
Snippets Groups Projects

Resolve #3386243 "D10 compatibility fix"

3 files
+ 33
2
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -38,7 +38,7 @@ class ParagraphsNormalizer extends EntityReferenceFieldItemNormalizer {
/**
* {@inheritdoc}
*/
public function normalize($field_item, $format = NULL, array $context = []) {
public function normalize($field_item, $format = NULL, array $context = array()): float|array|\ArrayObject|bool|int|string|null {
// @var $field_item \Drupal\Core\Field\FieldItemInterface.
$target_entity = $field_item->get('entity')->getValue();
Loading