So to be a little clearer, I'm creating a source migrate plugin that extends SourcePluginBase and not SqlBase. I get my data from a class of service, but I would like to know how to bind them to the fields () and prepareRow() methods in the documentation example? Since I do not have the query () method.

Any help?

  • What example are you referring to?
    – leymannx
    Jul 23, 2019 at 15:53
  • Do you know the module Migrate Plus which provides SourcePluginExtension - an abstract source plugin class providing a standard mechanism for specifying a source's IDs and fields via configuration and also examples how to use it?
    – 4uk4
    Jul 23, 2019 at 16:01
  • Sorry i forgot the link @leymannx drupal.org/docs/8/api/migrate-api/migrate-source-plugins/…
    – Touco
    Jul 23, 2019 at 16:56
  • Yes i know but i 've created a custom plugin class that extends SoucePluginBase @4k4
    – Touco
    Jul 23, 2019 at 16:58
  • The class i've mentioned does the same. Either use it directly or if you don't like the module then at least use it as example.
    – 4uk4
    Jul 23, 2019 at 18:37


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.