Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Paragraphs Sets Plugins

No security coverage Under active development 35 sites

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.

Drupal 9–10 · not 11

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.

Activity

Tracked releases
4
Tracked since
May 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
3.0.2 Stable 9–10 Mar 18, 2024
3.0.1 Stable 9–10 May 22, 2023
3.0.0 Stable 8–10 May 19, 2023
3.0.x-dev Dev 9–10 May 19, 2023