Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drupal generate:plugin:migrate:source should include "source_module" definition #3857

Closed
kalevitan opened this issue Apr 4, 2018 · 2 comments

Comments

@kalevitan
Copy link

Problem/Motivation

Migrate API requires all source plugins have a "source_module" defined in the annotation.

Details to include:

  • Since it's a requirement, and Drupal throws an error if not present, I suggest that a prompt be added to include a source module when generating a migrate source plugin.

Details to include:

  • Drupal version 8.5.1
  • Console version 1.80

Example Output Result

/**
 * field_collection_item source.
 *
 * @MigrateSource(
 *   id = "field_collection_item",
 *   source_module = "field_collection"
 * )
 */
@LOBsTerr
Copy link
Member

LOBsTerr commented Apr 4, 2018

@jmolivas PR #3858

I have fixed this issue + improved and fixed the code a little bit

@LOBsTerr
Copy link
Member

Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants