Saves the API mappings for the elements of a given form.
Description
See also
Parameters
- $form
-
(awsmug\Torro_Forms\DB_Objects\Forms\Form) (Required) Form that has been saved.
- $mappings
-
(array) (Required) Array of ID mappings from the objects that have been saved.
Source
File: src/modules/actions/module.php
protected function save_api_mappings( $form, $id_mappings ) { foreach ( $this->submodules as $slug => $action ) { if ( ! is_a( $action, API_Action_Interface::class ) ) { continue; } if ( ! $action->enabled( $form ) ) { continue; } $action->save_mappings( $form->id, $id_mappings['elements'] ); } }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |