GravityKit\GravityMigrate\Platforms\WPForms\WPFormsSourceAdapter
Source: src/Platforms/WPForms/WPFormsSourceAdapter.php:37
Details
- Kind:
class - Namespace:
GravityKit\GravityMigrate\Platforms\WPForms - Extends:
AbstractSourceAdapter
Properties
| Property | Type | Description |
|---|---|---|
$field_label_map | array | WPForms field id => label, so a generated Gravity Forms tag can name its field. |
$dynamic_population | bool | Whether the form being read has WPForms' form-level dynamic population turned on. |
$layout_group_index | int | Counter for generated layout group IDs. |
$direct_field_type_map | array<string, | string> |
$field_addon_dependencies | array<string, | string> |
Methods
| Method | Description |
|---|---|
build_prepared_payload() | Builds a prepared payload for a Gravity Forms import. |
Method Reference
build_prepared_payload()
public function build_prepared_payload( array $source_form )
Builds a prepared payload for a Gravity Forms import.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$source_form | array | Source form payload. |
Returns
array|\WP_Error— Prepared payload array or WP_Error on failure.
Since: %ver%
Source: src/Platforms/WPForms/WPFormsSourceAdapter.php:184