-1

I have a paragraph field that is already used in a content type. I need to add that paragraph field to another content type using the same field that I was using in the previous content type. How do I do that?

1
  • I'd recommend adding the field in config, this means configure in UI (see the answer from @ssibal) and export the YAML files. How to add bundle fields programmatically see drupal.stackexchange.com/a/222296/47547
    – 4uk4
    Commented Dec 18, 2018 at 10:12

1 Answer 1

1

Should be the same as with any other fields:

  1. You go Structure/Content Types/MyContentType
  2. Re-use an existing field: Entity Reference Revisions: ..
  3. You click Save and continue and you apply your settings.
2
  • I need a programmatical way to do this Commented Dec 18, 2018 at 8:15
  • Could you please extend your question with the exact use case why you need that? Would help us to find the right way, because this part can be risky.
    – ssibal
    Commented Dec 18, 2018 at 9:14

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.