Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296241

Make service for field discovery for use in migrate entity derivers

$
0
0

Problem/Motivation

In contrib (and even in core itself), there is a lot of boilerplate repeated when a migrate source deriver wants to add fields to an source migrate deriver for a fieldable entity. Let's make the code for discovering and adding fields generic and by creating a re-usable service. This will reduce the duplication of code copy/paste spread across all the derivers, not only in core but also in contrib.

Paragraphs and Commerce would use this. Node, user and taxonomy term in core could also.

Proposed resolution

Take a look at node source deriver, make a service and then implement it for node, user and taxonomy.

Remaining tasks

  1. Code it
  2. Run existing tests
  3. Commit it

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 296241

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>