Use correct field type class for fields with custom field item class in \Drupal\migrate\Plugin\migrate\destination\EntityContentBase

Created on 5 April 2023, over 1 year ago
Updated 22 May 2023, over 1 year ago

Problem/Motivation

As part of 📌 Improve StringItem::generateSampleValue() Fixed , we discovered that in \Drupal\migrate\Plugin\migrate\destination\EntityContentBase::processStubRow, the field type class is retrieved using \Drupal\Core\Field\FieldDefinitionInterface::getType which resolves into incorrect field type when custom field item class is used.

Proposed resolution

Use \Drupal\Core\TypedData\DataDefinitionInterface::getClass for retrieving the class.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Migration 

Last updated about 1 hour ago

Created by

🇫🇮Finland lauriii Finland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024