Part of the Paragraphs ecosystem · 89 projects
This module extends the Paragraphs Sets functionality by introducing a plugin system for data transformation. It allows for the automatic creation of nested entities within Paragraphs Sets, simplifying content creation by prepopulating referenced entities.
This adds a data transform plugin system to Paragraphs Sets by wrapping that module's data_alter hooks.
The annotated plugins operate kinda sorta like migration process plugins. Currently include plugins:
- `simple`: an identity plugin
- `create_entity`: construct nested entities for an entity reference field
For example, in a paragraphs set, we want a paragraph that references custom entities to prepopulate (i.e., create) the entities:
...
-
type: fast_facts
data:
field_heading: 'Why Choose This Degree?'
field_collection_items:
plugin: create_entity
reuse_template_if_unmodified: true
data:
-
bundle: fast_fact
field_heading: 'Test fact 1'
field_body: 'Lorem ipsum'
-
bundle: fast_fact
field_heading: 'Test fact 2'
field_body: 'Lorem ipsum'
...
The `field_collection_items` field gets populated using the `create_entity` plugin, while `field_heading` gets populated as before using the paragraphs_sets builtin field value setter.
Ask your assistant about Paragraphs Sets Plugins
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Paragraphs ecosystem
Most installed first