Support mapping of multiple entity reference field values

Created on 21 September 2023, almost 2 years ago

Follow-up ticket of comment #8 in #3058045: support custom entity reference fields in user accounts .

While the fix in #3058045: support custom entity reference fields in user accounts made it possible to map an entity reference field, it doesn't support multiple values for entity reference fields yet.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium rp7

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

Comments & Activities

  • Issue created by @rp7
  • Status changed to Needs review almost 2 years ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.0.7 + Environment: PHP 8.1 & MySQL 5.7
    last update almost 2 years ago
    100 pass
  • Issue was unassigned.
  • Status changed to RTBC 12 days ago
  • 🇧🇪Belgium RandalV

    This seems like a useful feature, just passing the mapped value along to the field setter should work fine.

    Drupal's entity_reference field setters can handle all of the following input values just fine:
    - 13
    - [13, 14, 15]
    - ['target_id' => 13]
    - [ ['target_id' => 13], ['target_id' => 14], ['target_id' => 15] ]

    So I don't see any issues with this patch.

Production build 0.71.5 2024