Checks whether the current request is the final submit request for a submission completion.
Description
See also
Parameters
- $form
-
(awsmug\Torro_Forms\DB_Objects\Forms\Form) (Required) Form object.
- $submission
-
(awsmug\Torro_Forms\DB_Objects\Submissions\Submission|null) (Optional) Submission object, or null if no submission is set.
Default value: null
Return
(bool) True if there is a next container, false otherwise.
Source
File: src/modules/protectors/module.php
protected function is_final_submit_request( $form, $submission = null ) { if ( $submission ) { $next_container = $submission->get_next_container(); return null === $next_container; } $containers = $form->get_containers(); return 1 >= count( $containers ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |