Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Webform Entity Builder

Security covered Maintenance fixes only 6 sites

Part of the Webform ecosystem · 225 projects

This module allows you to build or edit Drupal entities using webform submissions. When a webform is submitted, a handler processes the data and uses an event scheduler to create or update the specified entity in the background. The webform must contain fields to define the entity type and optionally an entity ID for editing.

This module provides support for creating and editing entities from webforms.

This module does nothing on its own.

WebformHandler

We provide a webform handler that is attached to the webform and, when the form has been completed, it compiles the data and launches a delayed event using the event_scheduler module.

The delayed event means that the work on constructing or updating the entity from the webform data takes place after the current page has been sent to the user. It provides better UX with less delay.

The webform itself has to have a field called "_build_entity" which defines the entity type/bundle being created, without it the system won't know what to build (and won't try). If the form also contains and entity ID field it will use that to select the entity for editing.

EntityBuilder

The event is picked up by this module which finds a matching EntityBuilder plugin and then runs it on the data from the webform to process the webform data into a form that can be used to create the entity.

Then it tries to create/edit and save the entity. Full information is provided in the logfile if something doesn't work.

The original webform submission is deleted if the create/edit process succeeds.

Debugging

  • Does your webform have an entity type field? A hidden (or value) field called entity_type which gives the type of the entity to be created?
  • Is there an actual plugin for the right type to perform the build process?

Ask your assistant about Webform Entity Builder

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

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Apr 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
2.0.0-rc3 Pre-release 9–10 Apr 8, 2023