You are here

protected function WebformDialogFormTrait::buildDialogForm in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Form/WebformDialogFormTrait.php \Drupal\webform\Form\WebformDialogFormTrait::buildDialogForm()

Add modal dialog support to a form.

Parameters

array $form: An associative array containing the structure of the form.

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

array $settings: Ajax settings.

Return value

array The webform with modal dialog support.

7 calls to WebformDialogFormTrait::buildDialogForm()
WebformDialogFormTrait::buildDialogConfirmForm in src/Form/WebformDialogFormTrait.php
Add modal dialog support to a confirm form.
WebformEntityAddForm::buildForm in src/WebformEntityAddForm.php
Form constructor.
WebformEntityElementsForm::buildForm in src/WebformEntityElementsForm.php
Form constructor.
WebformHandlerFormBase::buildForm in src/Form/WebformHandlerFormBase.php
Form constructor.
WebformSubmissionNotesForm::buildForm in src/WebformSubmissionNotesForm.php
Form constructor.

... See full list

File

src/Form/WebformDialogFormTrait.php, line 38

Class

WebformDialogFormTrait
Trait for webform dialog support.

Namespace

Drupal\webform\Form

Code

protected function buildDialogForm(array &$form, FormStateInterface $form_state, array $settings = []) {
  return $this
    ->buildAjaxForm($form, $form_state, $settings);
}