drupalextension icon indicating copy to clipboard operation
drupalextension copied to clipboard

Creating sub/nested fields

Open jacks0n opened this issue 6 years ago • 1 comments

Is it possible to specify sub-fields when creating Nodes?

I noticed I can set moderation_state[state] with just moderation_state.

I'm trying to populate an address and some Paragraph fields. E.g. field_address[0][address][country_code].

jacks0n avatar Oct 14 '19 04:10 jacks0n

Indeed! In the case of address, check out this example. However, that is functioning due to an AddressHandler in the Drupal Driver, so working with paragraphs may take some experimentation...

jhedstrom avatar Oct 14 '19 16:10 jhedstrom