Text
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 |
---|---|---|---|---|---|
Text | Text (Formatted,Long) | No | Yes |
Nextjs Create
const paragraph_text = await drupal.createResource<DrupalParagraph>("paragraph--text", {
data: {
type: 'paragraph--text',
attributes: {
field_text: [
{
value: 'Paragraph content',
format: "plain_text",
}
],
},
},
}, {
withAuth: {
username: process.env.DRUPAL_USERNAME,
password: process.env.DRUPAL_PASSWORD,
},
});