You are here

protected function WebformSubmissionForm::init in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformSubmissionForm.php \Drupal\webform\WebformSubmissionForm::init()

Initializes the form state and the entity before the first form build.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides ContentEntityForm::init

File

src/WebformSubmissionForm.php, line 348

Class

WebformSubmissionForm
Provides a webform to collect and edit submissions.

Namespace

Drupal\webform

Code

protected function init(FormStateInterface $form_state) {
  parent::init($form_state);
  $this
    ->getWebform()
    ->invokeHandlers('prepareForm', $this->entity, $this->operation, $form_state);
}