Checks whether there is a next container.
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/db-objects/forms/form-frontend-output-handler.php
protected function has_next_container( $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. |