function webform_card_webform_submission_builder in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_cards/webform_cards.module \webform_card_webform_submission_builder()
Entity form builder to set the current card for a webform submission.
1 string reference to 'webform_card_webform_submission_builder'
- webform_cards_webform_submission_form_alter in modules/
webform_cards/ webform_cards.module - Implements hook_webform_submission_form_alter().
File
- modules/
webform_cards/ webform_cards.module, line 264 - Provides a 'Card' container element for clientside multistep form pagination.
Code
function webform_card_webform_submission_builder($entity_type, WebformSubmissionInterface $entity, &$form, FormStateInterface $form_state) {
$entity
->set('current_card', $form_state
->getValue('current_card'));
}