You are here

public function WebformEntityElementsForm::buildForm in Webform 8.5

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

Form constructor.

Parameters

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

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

Return value

array The form structure.

Overrides EntityForm::buildForm

File

src/WebformEntityElementsForm.php, line 84

Class

WebformEntityElementsForm
Webform manage elements YAML source form.

Namespace

Drupal\webform

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildForm($form, $form_state);
  return $this
    ->buildDialogForm($form, $form_state);
}