You are here

function webform_revisions_webform_submission_form_alter in Config Entity Revisions 8

Same name and namespace in other branches
  1. 8.2 modules/webform_revisions/webform_revisions.module \webform_revisions_webform_submission_form_alter()
  2. 1.x modules/webform_revisions/webform_revisions.module \webform_revisions_webform_submission_form_alter()

Perform alterations before a webform submission form is rendered.

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

Parameters

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

\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 webform's id.

See also

webform.honeypot.inc

hook_form_BASE_FORM_ID_alter()

hook_form_FORM_ID_alter()

File

modules/webform_revisions/webform_revisions.module, line 186

Code

function webform_revisions_webform_submission_form_alter(array &$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
  WebformRevisionsController::submission_form_alter($form, $form_state, $form_id);
}