FieldableEntity should provide more code to help subclasses

Created on 18 May 2019, over 6 years ago
Updated 21 May 2025, 4 months ago

I'm writing a custom migration source plugin for a Drupal 7 custom entity type.

I'm using FieldableEntity as the base class, but I am finding there's a lot of copy-pasting of code with just a few bits getting changed such as the entity ID, bundle field, ID field and so on.

For example, in most cases, prepareRow() could be handled in the base class with the addition of a few class properties to define the entity type ID, base table name, and id, vid, and bundle field names.

Given those class properties, the getIds() method could be handled in the base class too.

Feature request
Status

Postponed

Version

11.0 🔥

Component

migration system

Created by

🇬🇧United Kingdom joachim

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