-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?

  • 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 – 4k4 Dec 18 '18 at 10:12
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.
  • I need a programmatical way to do this – i am batman Dec 18 '18 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 Dec 18 '18 at 9:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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