GravityKit\GravityMigrate\Platforms\WSForm\WSFormTargetAdapter
Builds WS Form payloads from Gravity Forms data.
WS Form stores a form three levels deep: a form holds groups, a group holds sections, and a section holds fields. Every field therefore needs a section above it and a group above that, and a Gravity Forms page break starts a new group rather than adding a field.
Every type and meta key written here was read from WS Form PRO through WS_Form_Config::get_field_types_flat() and WS_Form_Config::get_meta_keys(). WS Form renders nothing for a type it does not register and ignores a meta key it does not know, so getting either wrong fails silently.
Since: %ver%
Source: src/Platforms/WSForm/WSFormTargetAdapter.php:33
Details
- Kind:
class - Namespace:
GravityKit\GravityMigrate\Platforms\WSForm - Extends:
AbstractTargetAdapter
Methods
| Method | Description |
|---|---|
build_prepared_payload() | Builds a prepared payload for exporting a Gravity Forms form. |
Method Reference
build_prepared_payload()
public function build_prepared_payload( array $gf_form ): array
Builds a prepared payload for exporting a Gravity Forms form.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$gf_form | array | Gravity Forms payload. |
Returns
array
Since: %ver%
Source: src/Platforms/WSForm/WSFormTargetAdapter.php:131