Languages
Description
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse viverra massa in dolor lobortis lobortis. Donec nec faucibus risus, ut scelerisque urna. Morbi consectetur dui ut posuere mattis. Morbi dapibus sapien at mi semper, a mollis lacus scelerisque. Donec eu dignissim urna. Curabitur aliquam ipsum posuere tortor sodales venenatis. Integer ut laoreet mi, vitae consectetur massa.
Fields
Name | Type | Default Value | Multiple | Required | Validation |
---|---|---|---|---|---|
Language | Reference (Taxonomy Term Languages) | No | Yes | ||
Level of proficiency | Reference (Taxonomy Term Proficiency Level) | No | Yes |
Nextjs Create
const paragraph_language = await drupal.createResource<DrupalParagraph>("paragraph--language", {
data: {
type: 'paragraph--language',
relationships: {
field_language: {
data: {
type: 'taxonomy_term--languages',
id:"c42e8285-09ba-4622-ae42-c4f92f8bcc42",
meta: {
drupal_internal__target_id: 5
}
},
},
field_proficiency_level: {
data: {
type: 'taxonomy_term--proficiency_levels',
id:"35363d45-5cc0-456e-98c9-98bd75c85193",
meta: {
drupal_internal__target_id: 6
}
},
},
},
},
}, {
withAuth: {
username: process.env.DRUPAL_USERNAME,
password: process.env.DRUPAL_PASSWORD,
},
});