You are here

function hook_yamlform_submission_form_alter in YAML Form 8

Perform alterations before a form submission form is rendered.

This hook is identical to hook_form_alter() but allows the hook_yamlform_submission_form_alter() function to be stored in a dedicated include file and it also allows the YAML Form module to implement form alter logic on another module's behalf.

Parameters

array $form: Nested array of form elements that comprise the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. The arguments that \Drupal::formBuilder()->getForm() was originally called with are available in the array $form_state->getBuildInfo()['args'].

string $form_id: String representing the form's id.

See also

yamlform.honeypot.inc

hook_form_BASE_FORM_ID_alter()

hook_form_FORM_ID_alter()

2 functions implement hook_yamlform_submission_form_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

honeypot_yamlform_submission_form_alter in third_party_settings/yamlform.honeypot.inc
Implements hook_yamlform_submission_form_alter().
yamlform_test_third_party_settings_yamlform_submission_form_alter in tests/modules/yamlform_test_third_party_settings/yamlform_test_third_party_settings.yamlform.inc
Implements hook_yamlform_submission_form_alter().
1 invocation of hook_yamlform_submission_form_alter()
YamlFormSubmissionForm::buildForm in src/YamlFormSubmissionForm.php
Form constructor.

File

./yamlform.api.php, line 121
Hooks related to YAML Form module.

Code

function hook_yamlform_submission_form_alter(array &$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
}