import featured image as entity reference

Created on 8 May 2025, 6 days ago

Problem/Motivation

Spinoff Add body field picker w default to wizard & processing Active . since the Drupal CMS wants an entity reference field as a default field choice we should really line that up.

Proposed resolution

Per Add body field picker w default to wizard & processing Active we are looking at a regular image field so far. per Import as media Needs review we are looking at importing image and other attachment types as Drupal "media". this would be a little different, cover the entity reference instead.

Remaining tasks

  • modify import form to show entity reference fields that exist and can have the image loaded
  • write the import migration as needed to the other field (may need to change yml files)
  • save the record and try to have a migration when save fails
  • try to factor in if the remote host is down and halt if so, but keep going if a single image is 404. attachments / featured images not fault tolerant if missing Active

    User interface changes

    modify import form to show entity reference fields that exist and can have the image loaded.

    API changes

    the form result array state would change somehow. such as a key like 'import_featured_image_to_entity_reference_field' and the value is the fieldname.

    Data model changes

    similar issue to form result array and also configuration entities would need to have a similar record.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇺🇸United States hongpong Philadelphia

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

Comments & Activities

Production build 0.71.5 2024